[tools/wrt350nv2-builder] Update to v2.1
[openwrt.git] / package / base-files / files / usr / share / udhcpc / default.script
index b32b2c9..f704a7b 100755 (executable)
@@ -31,7 +31,8 @@ setup_interface () {
                config_get old_subnet    "$ifc" netmask
        }
 
                config_get old_subnet    "$ifc" netmask
        }
 
-       [ "$ip" != "$old_ip" ] \
+       [ "$1" = "ifup" ] \
+       || [ "$ip" != "$old_ip" ] \
        || [ "${broadcast:-+}" != "$old_broadcast" ] \
        || [ "${subnet:-255.255.255.0}" != "$old_subnet" ] && {
                echo "udhcpc: ifconfig $interface $ip netmask ${subnet:-255.255.255.0} broadcast ${broadcast:-+}"
        || [ "${broadcast:-+}" != "$old_broadcast" ] \
        || [ "${subnet:-255.255.255.0}" != "$old_subnet" ] && {
                echo "udhcpc: ifconfig $interface $ip netmask ${subnet:-255.255.255.0} broadcast ${broadcast:-+}"
This page took 0.037113 seconds and 4 git commands to generate.