Erich Titl schrieb:
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
######################################################################################

Erich, I have now tested it and altered the timeouts to 5 Seconds with 40 loops. This seems to work well with t-online adsl. I inserted it in /etc/init.d/ntp under the start script.
Many thanks,
Bob


-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
------------------------------------------------------------------------
leaf-user mailing list: [email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to