move platform specific base-files into target/linux/<targetname>
[openwrt/svn-archive/archive.git] / package / base-files / default / lib / network / config.sh
index 502377b6012afbd82bf54b8286a6bd4b63aa572c..90f5bf742414659f0916d90b9b7b3acbc359d705 100755 (executable)
@@ -122,7 +122,7 @@ setup_interface() {
                                done
                        }
 
-                       env -i ACTION="ifup" INTERFACE="config" DEVICE="$iface" PROTO=static /sbin/hotplug "iface" &
+                       env -i ACTION="ifup" INTERFACE="$config" DEVICE="$iface" PROTO=static /sbin/hotplug "iface" &
                ;;
                dhcp)
                        # prevent udhcpc from starting more than once
@@ -143,7 +143,7 @@ setup_interface() {
 
                        # don't stay running in background if dhcp is not the main proto on the interface (e.g. when using pptp)
                        [ "$proto1" != "$proto" ] && dhcpopts="-n -q"
-                       $DEBUG udhcpc -i "$iface" ${ipaddr:+-r $ipaddr} ${hostname:+-H $hostname} -b -p "$pidfile" ${dhcpopts:- -R &}
+                       $DEBUG eval udhcpc -t 0 -i "$iface" ${ipaddr:+-r $ipaddr} ${hostname:+-H $hostname} -b -p "$pidfile" ${dhcpopts:- -R &}
                        lock -u "/var/lock/dhcp-$iface"
                ;;
                *)