udhcpc: Pass all events to udhcpc.user
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 12 Jul 2009 15:38:04 +0000 (15:38 +0000)
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 12 Jul 2009 15:38:04 +0000 (15:38 +0000)
Petitboot and maybe other apps need to know when
the dhcp lease is lost.  Move the udhcpc.user call
to send it all udhcpc events.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16815 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 1b02c0c..b32b2c9 100755 (executable)
@@ -215,9 +215,9 @@ for ifc in $interfaces __default; do
                        setup_interface ifup
                ;;
        esac
-
-       # user rules
-       [ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
 done
 
+# user rules
+[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
+
 exit 0
This page took 0.024124 seconds and 4 git commands to generate.