|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Oct 2003
Città: Turin
Messaggi: 746
|
[rc.local] adsl-start
Volevo inserire in /etc/rc.local una riga per farmi avviare la connessione ADSL all'avvio della macchina...
ho aggiunto Codice:
/usr/sbin/adsl-start eth1 USERNAME /etc/ppp/pppoe.conf lo script si pianta per ore.. cercando di far partire l'adsl come posso dirgli di fare sl 1 tentativo e interrompere se nn va a buon fine dopo tot. minuti ? tnx_
__________________
LiNUX User: 371384 "Bort_83 @ jabber.linux.it" LaKRiKKADiBoRT_SeTi@HoMe_GRouP .:: Vendo Cerchioni in lega peugeot 205 GT, 309 GT, 405, 106 Rally + Pirelli P600 185/55R16 ::. |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Mar 2002
Messaggi: 320
|
Io uso pppoe e in /etc/ppp/pppoe.conf posso impostare un timeout (non ricordo come si chiama ma basta leggere i commenti) a zero. In questo modo, il pppd va subito in background e cerca sempre di connettersi ad Internet. Quindi il comando adsl-start ritorna subito senza attese.
Ciao! |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Oct 2003
Città: Turin
Messaggi: 746
|
tnx.. effettivamente nn ho letto i commenti di pppoe.conf (mea culpa)
immagino che sia questo vero ? Codice:
### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT # How long adsl-start waits for a new PPP interface to appear before # concluding something went wrong. If you use 0, then adsl-start # exits immediately with a successful status and does not wait for the # link to come up. Time is in seconds. # # WARNING WARNING WARNING: # # If you are using rp-pppoe on a physically-inaccessible host, set # CONNECT_TIMEOUT to 0. This makes SURE that the machine keeps trying # to connect forever after adsl-start is called. Otherwise, it will # give out after CONNECT_TIMEOUT seconds and will not attempt to # connect again, making it impossible to reach. CONNECT_TIMEOUT=0 penso che ora sia ok.. tnX_
__________________
LiNUX User: 371384 "Bort_83 @ jabber.linux.it" LaKRiKKADiBoRT_SeTi@HoMe_GRouP .:: Vendo Cerchioni in lega peugeot 205 GT, 309 GT, 405, 106 Rally + Pirelli P600 185/55R16 ::. |
![]() |
![]() |
![]() |
#4 |
Senior Member
Iscritto dal: Mar 2002
Messaggi: 320
|
Si, esatto.
A questo punto adsl-start ritorna subito invece di farti vedere i "puntini" di attesa. Ciao! |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 14:56.