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]