don't emit ifup hotplug events on dhcp renew - use a new iface hotplug type 'update...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 23 Sep 2008 17:29:22 +0000 (17:29 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 23 Sep 2008 17:29:22 +0000 (17:29 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12671 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/usr/share/udhcpc/default.script

index 147b9f1..0eb044c 100755 (executable)
@@ -56,7 +56,11 @@ case "$1" in
                        mv "${RESOLV_CONF}.tmp" "$RESOLV_CONF"
                }
                
-               hotplug_event ifup
+               if [ "$1" = "renew" ]; then
+                       hotplug_event update
+               else
+                       hotplug_event ifup
+               fi
                
                # user rules
                [ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
This page took 0.020726 seconds and 4 git commands to generate.