Bob von Knobloch wrote:
...
>>
> Thanks for the information Erich, I have now removed ntpdate (as it is
> deprecated by ntp.org), but I suppose your solution might well be just
> as appropriate to ntsimpl. I can't find the mails about this, could you
> please send me your solution (or a pointer as to where I might find it)?
> Many thanks,
> Bob
something along the following lines should do. You may want to play with
the loops and sleep values to find your settings.
######################################################################################
# delay until a default route is available,
# this should probably be done in a separate init script
######################################################################################
net_if=ppp0
sleep=10
loops=20
while [ $loops -gt 0 ]
do
ip route | grep default > /dev/null;
[ $? -eq 0 ] && break;
ifdown $net_if > /dev/null;
sleep 1;
ifup $net_if > /dev/null;
sleep $sleep;
loops=$(( $loops - 1 ));
done
######################################################################################
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
------------------------------------------------------------------------
leaf-user mailing list: [email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/