X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/e6477dde693f8ea0fc7b616bae18598d182b2de4..8785e41158918c4bd966e7f43947865e462cabf7:/package/base-files/files/sbin/ifdown diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index 8ec568ff6..08433c75c 100755 --- a/package/base-files/files/sbin/ifdown +++ b/package/base-files/files/sbin/ifdown @@ -10,6 +10,14 @@ config_load network 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 + include /lib/network scan_interfaces