SVN: rc-scripts/trunk/sysconfig/network-scripts/functions.network

glen glen at pld-linux.org
Sun Oct 28 17:43:27 CET 2007


Author: glen
Date: Sun Oct 28 17:43:27 2007
New Revision: 8886

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/functions.network
Log:
- reuse WLAN_ENCRYPTION

Modified: rc-scripts/trunk/sysconfig/network-scripts/functions.network
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/functions.network	(original)
+++ rc-scripts/trunk/sysconfig/network-scripts/functions.network	Sun Oct 28 17:43:27 2007
@@ -519,13 +519,13 @@
 	val="$(eval echo \$${prefix}WLAN_FRAGMENTATION_THRESHOLD)" && [ -n "$val" ] && \
 		iwconfig ${device} frag "$val"
 
+	local wlan_encryption="$(eval echo \$${prefix}WLAN_ENCRYPTION)"
 	if val="$(eval echo \$${prefix}WLAN_KEY)" && [ -n "$val" ]; then
 		iwconfig ${device} key "$val"
-		val="$(eval echo \$${prefix}WLAN_ENCRYPTION)" && [ -n "$val" ] && \
-			iwconfig ${device} key "$val"
+		[ -n "$wlan_encryption" ] && iwconfig ${device} key "$wlan_encryption"
 	fi
 
-	if is_no "$(eval echo \$${prefix}WLAN_ENCRYPTION)"; then
+	if is_no "$wlan_encryption"; then
 		iwconfig ${device} key off
 	fi
 	val="$(eval echo \$${prefix}WLAN_POWER)" && [ -n "$val" ] && \


More information about the pld-cvs-commit mailing list