还有个问题:我用了希网的动态域名。在adsl-start里我加一和adsl一起启动的命令.开机自动拔号能够启动那条命令,但是如果断线后自动重连却不会启动那命令,动态域名不会被刷新。但手动打开adsl-start也能启动那条命令!
# Monitor connection
TIME=0
while [ true ] ; do
/sbin/adsl-status $CONFIG > /dev/null 2>&1
# Looks like the interface came up
if [ $? = 0 ] ; then
# Print newline if standard input is a TTY
[ "$DEBUG" = "1" ] && tty -s && $ECHO " Connected!"
/root/ez-ipupdate-3.0.10-linux-i386/ez-ipupdate -c /root/ez-ipupdate-3.0.10-linux-i386/qdns.conf
exit 0
fi
if test -n "$FORCEPING" ; then
[ "$DEBUG" = "1" ] && $ECHO -n "$FORCEPING"
else
[ "$DEBUG" = "1" ] && tty -s && $ECHO -n "$PING"
fi
sleep $CONNECT_POLL
TIME=`expr $TIME + $CONNECT_POLL`
if [ $TIME -gt $CONNECT_TIMEOUT ] ; then
break
fi
done
[ "$DEBUG" = "1" ] && $ECHO "TIMED OUT" >& 2
# Timed out! Kill the adsl-connect process and quit
kill $CONNECT_PID > /dev/null 2>&1