Parcourir la source

Silence ifconfig down errors in mac80211 (#4067)

SVN-Revision: 12856
Florian Fainelli il y a 17 ans
Parent
commit
c6b1119e6b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      package/mac80211/files/lib/wifi/mac80211.sh

+ 1 - 1
package/mac80211/files/lib/wifi/mac80211.sh

@@ -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