Silence ifconfig down errors in mac80211 (#4067)
authorFlorian Fainelli <florian@openwrt.org>
Sat, 4 Oct 2008 16:54:43 +0000 (16:54 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 4 Oct 2008 16:54:43 +0000 (16:54 +0000)
SVN-Revision: 12856

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

index 3f85864ec2ec60c9144c3b1b9cca7494a80a8c74..74105c666228d734cffd308b7973dfae6b62f637 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