Here comes the new UCI. Enjoy :)
[openwrt.git] / package / base-files / files / sbin / ifdown
index f8ce81b..1f200fb 100755 (executable)
@@ -12,9 +12,7 @@
 }
 
 # 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
This page took 0.025364 seconds and 4 git commands to generate.