From 65b79521dbeb506c69a9d43b5d6e612fd1486a2f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 15 Apr 2005 19:56:36 +0000 Subject: add SECURITYMODE (#145407) --- sysconfig/network-scripts/ifup-wireless | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysconfig/network-scripts/ifup-wireless') 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 -- cgit v1.2.1