logo       

Re: Iniciar conectado: msg#00309

org.user-groups.linux.brazil.slackware

Subject: Re: Iniciar conectado

> /etc/rc.d/rc.local

aqui eu utilizei o /etc/rc.d/rc.inet2 (acredito ser mais indicado).

acrescentei o seguinte:

if [ -x /etc/rc.d/rc.adsl ]; then
/etc/rc.d/rc.adsl start
fi

onde /etc/rc.d/rc.adsl contém o seguinte (seguindo os padrões do slack):

root@faleiros:~# cat /etc/rc.d/rc.adsl
#!/bin/sh
# /etc/rc.d/rc.adsl: start/stop ADSL connection
#
# Author: Herbert Alexander Faleiros
<herbert-m6VQoOOjFkzVny7hquFfmQ@xxxxxxxxxxxxxxxx>
#

adsl_start() {
/usr/sbin/adsl-start
}

adsl_stop() {
/usr/sbin/adsl-stop
}

adsl_restart() {
adsl_stop
sleep 1
adsl_start
}

case "$1" in
'start')
echo "Starting ADSL connection."
adsl_start 1>/dev/null
;;
'stop')
echo "Stoping ADSL connection."
adsl_stop 1>/dev/null
;;
'restart')
echo "Restarting ADSL connection."
adsl_restart
;;
*)
echo "usage $0 start|stop|restart"
esac


ah, certifique-se tb que seu /etc/rc.d/rc.6 contém:

# Try to shut down pppd:
if echo "$(ps ax)" | grep -q -w pppd ; then
if [ -x /usr/sbin/ppp-off ]; then
/usr/sbin/ppp-off
fi
fi


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise