[package] base-files: cached state vars after scan_interfaces might be out of sync...
[openwrt.git] / package / base-files / files / usr / share / udhcpc / default.script
index 3952777..92e3474 100755 (executable)
@@ -21,9 +21,9 @@ setup_interface () {
        local user_router
 
        [ -n "$ifc" ] && {
-               config_get old_ip        "$ifc" ipaddr
-               config_get old_broadcast "$ifc" broadcast
-               config_get old_subnet    "$ifc" netmask
+               old_ip="$(uci_get_state network "$ifc" ipaddr)"
+               old_broadcast="$(uci_get_state network "$ifc" broadcast)"
+               old_subnet="$(uci_get_state network "$ifc" netmask)"
        }
 
        [ "$ip" != "$old_ip" ] \
This page took 0.027957 seconds and 4 git commands to generate.