Here comes the new UCI. Enjoy :)
[openwrt/svn-archive/archive.git] / package / base-files / files / sbin / ifdown
index 08433c75c6e392f6ab537fdd4513610e871d5b84..1f200fbdf198e0a89fae81f8a18bc05c92583f71 100755 (executable)
        exit
 }
 
-config_load /var/state/network
-
 # remove the interface's network state
-FILE=/var/state/network.$$
-grep -v "^config_set '$1' " /var/state/network > "$FILE"
-mv "$FILE" /var/state/network
+uci_revert_state network "$1"
 
 include /lib/network
 scan_interfaces