summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-07-13 19:58:13 +0200
committerThomas Bächler <thomas@archlinux.org>2010-07-13 19:58:13 +0200
commit948ff7c2cae9f59b8090375856c7767a981572f2 (patch)
treea1facafb20809af1dba4dde8605e19808418515c /src
parent6b626a4773a26b4275cd7be663a5d7547ea4cb11 (diff)
downloadnetctl-948ff7c2cae9f59b8090375856c7767a981572f2.tar.gz
netctl-948ff7c2cae9f59b8090375856c7767a981572f2.tar.xz
wireless: HIDDEN option: use checkyesno function instead of custom check
Diffstat (limited to 'src')
-rw-r--r--src/8021x4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/8021x b/src/8021x
index e954f2b..f57ba7e 100644
--- a/src/8021x
+++ b/src/8021x
@@ -90,11 +90,9 @@ make_wpa_config() {
esac
# Hidden SSID
- shopt -s nocasematch
- if [[ $HIDDEN == "yes" ]]; then
+ if checkyesno ${HIDDEN:-no}; then
echo "scan_ssid=1"
fi
- shopt -u nocasematch
}
# vim: ft=sh ts=4 et sw=4: