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
}
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