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 1b02c0c18f350f12245a343db1ac41ee4bc0e532..b32b2c9f256e5c941f2fe0e5fd0f98399ded6dad 100755 (executable)
@@ -215,9 +215,9 @@ for ifc in $interfaces __default; do
                        setup_interface ifup
                ;;
        esac
                        setup_interface ifup
                ;;
        esac
-
-       # user rules
-       [ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
 done
 
 done
 
+# user rules
+[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
+
 exit 0
 exit 0