#! /bin/bash
test `whoami` = "root" || {
echo "root only can do that ! " ; exit 1
}
/etc/init.d/network reload
while test "`ifconfig ppp0 2> /dev/null | grep 'inet addr'`"
do echo still alive
done
qsr_sync_route
if test $1
then /usr/sbin/pppoed24 &
while ! test "`ifconfig ppp0 2> /dev/null | grep 'inet addr'`"
do echo not yet alive > /dev/null
done
fi
ifconfig
echo "-----------------"
martians