Bug 149385 - sys-apps/baselayout-1.12.5-r1: warning when stopping net.ppp0 interface
Bug#: 149385 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: serge@pdmi.ras.ru
Component: baselayout
URL: 
Summary: sys-apps/baselayout-1.12.5-r1: warning when stopping net.ppp0 interface
Keywords:  
Status Whiteboard: 
Opened: 2006-09-28 01:17 0000
Description:   Opened: 2006-09-28 01:17 0000
Hello! 
After upgrading up to sys-apps/baselayout-1.12.5-r1 when stopping net.ppp0
interface I get:

# /etc/init.d/net.ppp0 stop
 * Stopping ppp0
 *   Bringing down ppp0
 *     Stopping pppd on ppp0
/lib/rcscripts/net/pppd.sh: line 233: --pidfile: command not found

It looks like that everything is OK after stopping:

# /etc/init.d/net.ppp0 status
 * status:  stopped
# /etc/init.d/net.ppp0 start
 * Starting ppp0
 *   Running preup function                                                    
                                                                               
                 [ ok ] *   Bringing up ppp0
 *     ppp
 *       Running pppd ...
 *       ppp0 received address *.*.*.*

My /etc/conf.d/net is

config_nas0=( null )
br2684ctl_nas0="-e 0 -a 0.35"

config_ppp0=( ppp )  # Runs /lib/rcscripts/net/pppd.sh
link_ppp0='nas0' # The name of the RFC2684 bridge interface
plugins_ppp0=( 'pppoe' )
pppd_ppp0=( updetach noauth debug defaultroute usepeerdns persist)
username_ppp0='ptn'  # E.g. 'fredbloggs@hg5.btclick.com'
password_ppp0='ptn'  # ADSL password, assigned by your ISP

depend_ppp0() {
    need net.nas0
}

function preup() {
        if [[ "$1" = "nas0" ]] ; then
                modprobe -q speedtch
                return 0
        fi
}

------- Comment #1 From Serge Gavrilov 2006-09-28 01:24:42 0000 -------
Moreover (I cannot understand this!) if I skip 
"/etc/init.d/net.ppp0 status" interface fails to start after stopping:

# /etc/init.d/net.ppp0 stop
* Stopping ppp0
 *   Bringing down ppp0
 *     Stopping pppd on ppp0
/lib/rcscripts/net/pppd.sh: line 233: --pidfile: command not found

# /etc/init.d/net.ppp0 start
 * WARNING:  net.ppp0 has already been started.

# /etc/init.d/net.ppp0 status
 * status:  stopped

# /etc/init.d/net.ppp0 start
 * Starting ppp0
 *   Running preup function                                                    
                                                                               
                 [ ok ] *   Bringing up ppp0
 *     ppp
 *       Running pppd ...
 *       ppp0 received address 

------- Comment #2 From Roy Marples (RETIRED) 2006-09-28 02:35:31 0000 -------
Fixed in -r2. Sorry about that