udhcpc: Pass all events to udhcpc.user
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Sun, 12 Jul 2009 15:38:04 +0000 (15:38 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
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>
SVN-Revision: 16815

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