|
Re: Iniciar conectado: msg#00309org.user-groups.linux.brazil.slackware
> /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> |
|---|---|---|
| Previous by Date: | Re: Slackware: HD 120G - Dúvida: 00309, Herbert Alexander Faleiros |
|---|---|
| Next by Date: | Re: console no desktop???: 00309, Felipe Prenholato |
| Previous by Thread: | Re: Iniciar conectadoi: 00309, Gilmar Mendes |
| Next by Thread: | Re: Iniciar conectado: 00309, André Aun |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |