summaryrefslogtreecommitdiffstats
path: root/conf/default.in
diff options
context:
space:
mode:
Diffstat (limited to 'conf/default.in')
-rwxr-xr-xconf/default.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/conf/default.in b/conf/default.in
index 7067e28..39d32d7 100755
--- a/conf/default.in
+++ b/conf/default.in
@@ -52,9 +52,11 @@ case "$1.$METHOD" in
;;
start.wep)
- KEY="$(cat $KEYDIR/$FILE.wep )"
- iwconfig $IFACE key [1] restricted $KEY
- iwconfig $IFACE key on
+ KEY="$(cat $KEYDIR/$FILE.wep)"
+ iwconfig $IFACE key "$KEY"
+ iwconfig $IFACE key [1] 2> /dev/null
+ iwconfig $IFACE key restricted 2> /dev/null
+ iwconfig $IFACE key on 2> /dev/null
;;
*.open|stop.wep)