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 1b02c0c18f350f12245a343db1ac41ee4bc0e532..b32b2c9f256e5c941f2fe0e5fd0f98399ded6dad 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