Philip,
did you have loss of electricity, for example in remote office with astlinux.? 
Whan power on both devices (adsl modem and astlinux) at same time, astlinux 
boots faster then adsl modem  very often (Sometime synchronizations between 
ADSL modem and DSLAM take several minutes)
If variable CONNECT_TIMEOUT is set to 30 astlinux can remain without internet 
connection.
When set CONNECT_TIMEOUT=0  astlinux unconditional connect to the internet, but 
stay unsynchronized with ntp servers very ofen.
Because I can not predict time needed for synchronization between ADSL modem 
and DSLAM, I suggest modification of /etc/init.d/ntpd script.
Script should put testing internet connection and time synchronization into 
background.

Dominko



--- On Mon, 9/22/08, Philip Prindeville <[EMAIL PROTECTED]> wrote:
From: Philip Prindeville <[EMAIL PROTECTED]>
Subject: Re: [Astlinux-users] ntpd and pppoe issues
To: [EMAIL PROTECTED], "AstLinux Users Mailing List" 
<[email protected]>
Date: Monday, September 22, 2008, 8:20 PM

Not sure I understand.  I use ntpd and pppoe, and I just have:

WANDELAY=45

in my /mnt/kd/rc.conf file and that works fine.  Have you tried 
increasing your WANDELAY value?

-Philip


Dominko Vrljic wrote:
> Hi,
> I found several issues (and solutions) when astlinux run pppoe. 
> Sometimes ADSL modem boot slowly then astlinux, and astlinux box remains
without internet connection.
> Solution is CONNECT_TIMEOUT=0 in /etc/init.d/network script.
>
> Script /etc/init.d/ntpd does not work well very often:
> - restart does not work at all
> - in case of pppoe it seems /etc/init.d/ntpd starts before internet
connection is up and astlinux box remains unsynchronized.
> I rewrite script /etc/init.d/ntpd and now it works well.
>
> Regards,
> Dominko
>
> cat /etc/init.d/ntpd
> #!/bin/sh
>
> . /etc/rc.conf
>
> init () {
> if [ -r /mnt/kd/ntpd.conf ]
> then
> ln -s /mnt/kd/ntpd.conf /tmp/etc/ntpd.conf
> else
> echo "
>
> restrict default noquery nopeer notrap nomodify
> restrict 127.0.0.1" > /tmp/etc/ntpd.conf
>
> if [ "$NTPSERV" ]
> then
> echo "server $NTPSERV" >> /tmp/etc/ntpd.conf
> echo "driftfile /var/db/ntpd.drift" >> /tmp/etc/ntpd.conf
> fi
>
> if [ "$NTPSERVS" ]
> then
> echo "# NTPd" >> /tmp/etc/ntpd.conf
> for i in $NTPSERVS
> do
> echo "server $i" >> /tmp/etc/ntpd.conf
> done
> echo "driftfile /var/db/ntpd.drift" >> /tmp/etc/ntpd.conf
> fi
>
> fi
> }
>
> start () {
> if [ -r /etc/ntpd.conf ]
> then
> echo "Starting ntpd..."
> if [ -n "$EXTIP" -a -n "$DNS" -o -r /tmp/mydhcpip -o
-r /etc/ppp/pppoe.conf ]
> then
> if nslookup `grep -m 1 "^server " /etc/ntpd.conf | sed -e
's/server *//' -e 's/ .*//'` > /dev/null
> then
>
> while true; do
> ping -c 1 www.google.com 2>&- >&- && {
> /usr/sbin/ntpd -g -q -c /etc/ntpd.conf
> sleep 2
> # Maintain the clock (small changes)
> ntpd -c /etc/ntpd.conf -p /var/run/ntpd.pid 2>&- >&- &
> } && return
> done
>
>
> fi
> fi
> fi
> }
>
> stop () {
> if [ -r /var/run/ntpd.pid ]
> then
> echo "Stoping ntpd..."
> kill `cat /var/run/ntpd.pid`
> rm /var/run/ntpd.pid
> fi
> }
>
> case $1 in
>
> start)
> start &
> ;;
>
> stop)
> stop
> ;;
>
> init)
> init
> start
> ;;
>
> restart)
> stop
> sleep 2
> start &
> ;;
>
> *)
> echo "Usage: start|stop|restart"
> ;;
>
> esac
>
>
>   




      

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to