Dominko,

Perhaps a better solution is to leave the original ntpd script, but  
create your own custom script in:

/mnt/kd/rc.elocal

(make sure it is executable)

On startup, this optional script gets called immediately after /etc/ 
init.d/network, so you could put a short loop of network activity to  
get PPPoE up and running.

Hope that works.

Lonnie


On Sep 22, 2008, at 4:22 AM, 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
> ...

> 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
...


-------------------------------------------------------------------------
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