summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2008-05-30 14:33:30 +0200
committerJames Rayner <james@archlinux.org>2008-05-30 14:33:30 +0200
commit23cbda48fb94ca4f9555157560ebb52dfb636a3d (patch)
tree08001a4d36a1a0a6d6f7719f9aeff77a14fc4f50 /src
parent3ae730f3259cc5ebc4b70bf36f8b2081cde8934d (diff)
downloadnetctl-23cbda48fb94ca4f9555157560ebb52dfb636a3d.tar.gz
netctl-23cbda48fb94ca4f9555157560ebb52dfb636a3d.tar.xz
FS10396 - run custom own commands before connection
Diffstat (limited to 'src')
-rw-r--r--src/wireless.subr5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wireless.subr b/src/wireless.subr
index a15e3a6..b121af0 100644
--- a/src/wireless.subr
+++ b/src/wireless.subr
@@ -127,6 +127,11 @@ wireless_up() {
fi
fi
+ # Manually set iwconfig options
+ if [[ "$IWCONFIG" ]]; then
+ iwconfig $INTERFACE $IWCONFIG
+ fi
+
case $SECURITY in
wep|none)
# 'none' security uses iwconfig, like wep, so use same code, minus keysetting.