[package] base-files: revert dhcp state information on ifdown and restore pre-r19530...
[openwrt.git] / package / base-files / files / usr / share / udhcpc / default.script
index f704a7b..b32b2c9 100755 (executable)
@@ -31,8 +31,7 @@ setup_interface () {
                config_get old_subnet    "$ifc" netmask
        }
 
-       [ "$1" = "ifup" ] \
-       || [ "$ip" != "$old_ip" ] \
+       [ "$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:-+}"
This page took 0.021764 seconds and 4 git commands to generate.