aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-15 19:56:36 +0000
committerBill Nottingham <notting@redhat.com>2005-04-15 19:56:36 +0000
commit65b79521dbeb506c69a9d43b5d6e612fd1486a2f (patch)
treecccf2396e5d21afe53f0a4fb54b170678ee340b8 /sysconfig/network-scripts
parent55a096976082828ee186cd83117f46267268e89c (diff)
downloadinitscripts-65b79521dbeb506c69a9d43b5d6e612fd1486a2f.tar
initscripts-65b79521dbeb506c69a9d43b5d6e612fd1486a2f.tar.gz
initscripts-65b79521dbeb506c69a9d43b5d6e612fd1486a2f.tar.bz2
initscripts-65b79521dbeb506c69a9d43b5d6e612fd1486a2f.tar.xz
initscripts-65b79521dbeb506c69a9d43b5d6e612fd1486a2f.zip
add SECURITYMODE (#145407)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-wireless4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-wireless b/sysconfig/network-scripts/ifup-wireless
index 748cea53..d0fc64fb 100755
--- a/sysconfig/network-scripts/ifup-wireless
+++ b/sysconfig/network-scripts/ifup-wireless
@@ -25,6 +25,7 @@
# FRAG: Fragmentation threshold to split packets. Usually not specified.
# SPYIPS: List of IP addresses to "spy" on for link performance stats.
# IWCONFIG: Extra parameters to pass directly to IWCONFIG
+# SECURITYMODE: Security mode, e.g: 'open' or 'restricted'
# IWPRIV: Extra parameters to pass directly to IWPRIV
# Only meant to be called from ifup.
@@ -63,6 +64,9 @@ if [ -n "$KEY" -o -n "$KEY1" -o -n "$KEY2" -o -n "$KEY3" -o -n "$KEY4" ] ; then
else
iwconfig $DEVICE key off
fi
+if [ -n "$SECURITYMODE" ]; then
+ iwconfig $DEVICE enc $SECURITYMODE
+fi
if [ -n "$RTS" ] ; then
iwconfig $DEVICE rts $RTS
fi