X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e6477dde693f8ea0fc7b616bae18598d182b2de4..b77baef885633ce7117363e9046578297be2e453:/package/base-files/files/sbin/ifdown diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index 8ec568ff6..f8ce81bcb 100755 --- a/package/base-files/files/sbin/ifdown +++ b/package/base-files/files/sbin/ifdown @@ -10,6 +10,12 @@ config_load network exit } + +# 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