Silence ifconfig down errors in mac80211 (#4067)
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 4 Oct 2008 16:54:43 +0000 (16:54 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 4 Oct 2008 16:54:43 +0000 (16:54 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12856 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/files/lib/wifi/mac80211.sh

index 3f85864..74105c6 100644 (file)
@@ -53,7 +53,7 @@ enable_mac80211() {
        
        local first=1
        for vif in $vifs; do
-               ifconfig "$ifname" down
+               ifconfig "$ifname" down 2>/dev/null
                config_get ifname "$vif" ifname
                config_get enc "$vif" encryption
                config_get eap_type "$vif" eap_type