ntpd is automatically restarted when `wan' is brought up.  This is good
when your system is a home router.  But if you're using it some other
way, its internet connection might come from `lan' rather than from
`wan'.
So I suggest the patch below.


        Stefan


Index: net/ntpd/files/ntpd.hotplug
===================================================================
--- net/ntpd/files/ntpd.hotplug (révision 14019)
+++ net/ntpd/files/ntpd.hotplug (copie de travail)
@@ -2,7 +2,7 @@
 CONFIG=/etc/ntp.conf
 COMMAND=/usr/sbin/$NAME
 
-[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
+[ "$ACTION" = "ifup" ] && { # -a "$INTERFACE" = "wan"
         [ -x $COMMAND ] && [ -r $CONFIG ] && {
                killall ntpd
                /etc/init.d/ntpd start

_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to