diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-14 19:58:43 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-14 19:58:43 +0200 |
commit | 4cfceb141c0770aa37123fde6fc26c28283314ad (patch) | |
tree | 8973da1d99561d6ede8c4c69253d528a70e197f8 /package/base-files/src/etc | |
parent | 3b76e79f14e279a6526809e630e45e4f760d77de (diff) | |
parent | ba4b6056da30ddb19809b72309a009a1c84a7656 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/base-files/src/etc')
-rwxr-xr-x | package/base-files/src/etc/network/if-pre-up.d/04-wireless | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/src/etc/network/if-pre-up.d/04-wireless b/package/base-files/src/etc/network/if-pre-up.d/04-wireless index 1ccc4d823..78442d8ae 100755 --- a/package/base-files/src/etc/network/if-pre-up.d/04-wireless +++ b/package/base-files/src/etc/network/if-pre-up.d/04-wireless @@ -1,5 +1,4 @@ #!/bin/sh -#set -x set -e [ "${IFACE%%[0-9]*}" = "wlan" ] || exit 0 @@ -7,6 +6,7 @@ set -e [ "$IF_WIRELESS_SSID" ] || exit 1 [ "$IF_WIRELESS_CHANNEL" ] || exit 1 [ "$IF_WIRELESS_HWMODE" ] || IF_WIRELESS_HWMODE=g +[ "$IF_WIRELESS_EXTENSION" ] || IF_WIRELESS_EXTENSION=0 wpa=0 wpa1=0 @@ -46,7 +46,7 @@ case "$IF_WIRELESS_MODE" in echo "channel=$IF_WIRELESS_CHANNEL" >> /tmp/hostapd.conf echo "hw_mode=$IF_WIRELESS_HWMODE" >> /tmp/hostapd.conf echo "auth_algs=$sec" >> /tmp/hostapd.conf - [ $wpa -eq 0 ] && { + [ $wpa -eq 0 ] && [ $wpa1 -eq 0 ] && [ $wpa2 -eq 0 ] && { logger -t hostap "using no security mechanism" echo "wpa=0" >> /tmp/hostapd.conf } |