X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/46da1409881bee5a1b11691d286f773f38374bd9..842cf92928d5492af2563a1021ae92b9a71495d9:/package/base-files/files/sbin/ifdown diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index f8ce81bcb..1f200fbdf 100755 --- a/package/base-files/files/sbin/ifdown +++ b/package/base-files/files/sbin/ifdown @@ -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