gibney.org
:
Technology
:
Internet
:
Wait for a PPP connection
(Entry Nr. 302, by user 1 |
edit
)
// ... <br> <br>// pon ... <br> <br>check_connection() <br>{ <br> for x in `ifconfig ppp0` <br> do <br> if [ $x = "RUNNING" ]; <br> then <br> echo "ppp connection detected"; <br> connected=1 <br> continue <br> fi <br> done <br>} <br> <br>connected=0 <br>while [ $connected = 0 ] <br>do <br> echo "waiting for a ppp connection..." <br> check_connection; <br>done <br> <br>// ...
Create a new entry at this position