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