[package] uhttpd:
[openwrt.git] / package / base-files / files / lib / network / config.sh
index 12b08a2..e64198b 100755 (executable)
@@ -327,12 +327,17 @@ setup_interface() {
        }
 }
 
+stop_interface_dhcp() {
+       local config="$1"
+       uci -P /var/state revert "network.$config"
+}
+
 unbridge() {
        local dev="$1"
        local brdev
 
        [ -x /usr/sbin/brctl ] || return 0
-       brctl show | grep "$dev" >/dev/null && {
+       brctl show 2>/dev/null | grep "$dev" >/dev/null && {
                # interface is still part of a bridge, correct that
 
                for brdev in $(brctl show | awk '$2 ~ /^[0-9].*\./ { print $1 }'); do
This page took 0.024633 seconds and 4 git commands to generate.