[package] base-files: revert dhcp state information on ifdown and restore pre-r19530...
[openwrt-10.03/.git] / package / base-files / files / usr / share / udhcpc / default.script
index f704a7bf293c20ef2553261b1ca943fa9f34732f..b32b2c9f256e5c941f2fe0e5fd0f98399ded6dad 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:-+}"