summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-24 01:03:42 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-24 01:03:42 +0000
commit6d526991e14c2fc8b2d1538a3080ef0b8ec8fb6b (patch)
treeb653c39091d41dfc27508df93e96f72f8ec50de4
parent6e8c336f90f207ebc635f7ee57284256ec675bf2 (diff)
don't call wpa_supplicant unconditionally
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6656 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 1cd727ade..89ab83d8f 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -224,7 +224,7 @@ EOF
#add wpa_supplicant calls here
;;
esac
- wpa_supplicant ${bridge:+ -b $bridge} -Bw -D wext -i "$ifname" -c /var/run/wpa_supplicant-$ifname.conf
+ [ -z "$proto" ] || wpa_supplicant ${bridge:+ -b $bridge} -Bw -D wext -i "$ifname" -c /var/run/wpa_supplicant-$ifname.conf
;;
esac
first=0