diff options
author | Roy Marples <roy@marples.name> | 2007-05-16 06:33:25 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-05-16 06:33:25 +0000 |
commit | 66d71507503e17f7fee02b56d229c3910f43c22c (patch) | |
tree | 407e8a6eca72b9b726086b2af30d466c0c6256a6 | |
parent | fc597a87219dc0de006f02081bfb9cbc6ddfe14b (diff) |
Allow more modes to work.
-rw-r--r-- | net.BSD/iwconfig.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net.BSD/iwconfig.sh b/net.BSD/iwconfig.sh index 2f2a724c..7e6cf6e7 100644 --- a/net.BSD/iwconfig.sh +++ b/net.BSD/iwconfig.sh @@ -71,7 +71,7 @@ iwconfig_user_config() { iwconfig_set_mode() { local x= opt= unopt="hostap adhoc" - case "${mode}" in + case "$1" in master|hostap) unopt="adhoc" opt="hostap" ;; ad-hoc|adhoc) unopt="hostap" opt="adhoc" ;; esac @@ -474,7 +474,7 @@ iwconfig_configure() { ad-hoc|adhoc|hostap|master) iwconfig_setup_specific "${x}" ;; esac - if [ "${x}" != "managed" -a "${x}" != "auto" ] ; then + if [ "${x}" != "managed" -a "${x}" != "auto" -a "${x}" != "ad-hoc" -a "${x}" != "adhoc" -a ${x} != "master" ] ; then eerror "Only managed, ad-hoc, master and auto modes are supported" return 1 fi |