summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin/ifdown
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/sbin/ifdown')
-rwxr-xr-xpackage/base-files/files/sbin/ifdown6
1 files changed, 1 insertions, 5 deletions
diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown
index 08433c75c..1f200fbdf 100755
--- a/package/base-files/files/sbin/ifdown
+++ b/package/base-files/files/sbin/ifdown
@@ -11,12 +11,8 @@
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