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 1cd727a..89ab83d 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