X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/e6477dde693f8ea0fc7b616bae18598d182b2de4..78fa722e2550faa62a51f15cbfa7841e8e3a4d85:/package/base-files/files/sbin/ifdown diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index 8ec568ff6..7cc87deb7 100755 --- a/package/base-files/files/sbin/ifdown +++ b/package/base-files/files/sbin/ifdown @@ -10,6 +10,7 @@ config_load network exit } + include /lib/network scan_interfaces @@ -60,3 +61,7 @@ done config_get iftype "$cfg" type [ "bridge" = "$iftype" ] && brctl delbr "$ifname" >/dev/null 2>/dev/null +# remove the interface's network state +uci_revert_state network "$1" + +