fix dhcp hotplug events
authorFelix Fietkau <nbd@openwrt.org>
Thu, 9 Nov 2006 23:05:54 +0000 (23:05 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 9 Nov 2006 23:05:54 +0000 (23:05 +0000)
SVN-Revision: 5491

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

index 74e703715b7cde9b5daf510575a221298c5dd22f..53c8faf3169bc0a63cce9d8ae86567b158b9bf8a 100755 (executable)
@@ -14,7 +14,7 @@ hotplug_event() {
                config_get proto $ifc proto
                [ "$proto" = "dhcp" ] || continue
 
-               env -i ACTION="$1" INTERFACE="$ifname" PROTO=dhcp /sbin/hotplug iface
+               env -i ACTION="$1" INTERFACE="$ifc" DEVICE="$ifname" PROTO=dhcp /sbin/hotplug iface
        done
 }