don't call wpa_supplicant unconditionally
authorFelix Fietkau <nbd@openwrt.org>
Sat, 24 Mar 2007 01:03:42 +0000 (01:03 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 24 Mar 2007 01:03:42 +0000 (01:03 +0000)
SVN-Revision: 6656

package/madwifi/files/lib/wifi/madwifi.sh

index 1cd727ade711e8c4b301653a3a980d6c4666f05e..89ab83d8fd115c2ea0d8513fef2ed0bd2c8d824b 100755 (executable)
@@ -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