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

glen glen at pld-linux.org
Wed Jun 3 08:28:14 CEST 2009


Author: glen
Date: Wed Jun  3 08:28:10 2009
New Revision: 10367

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/functions.network
Log:
- i don't think cat output is localized

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	Wed Jun  3 08:28:10 2009
@@ -581,7 +581,7 @@
 	# "radio off" is ipwxxx only "feature" (and there is no "radio on")
 	echo "$output" | grep -q "radio off" && return 0
 	# rfkill state (are there devices with multiple rfkill buttons?)
-	local output=$(LC_ALL=C cat /sys/class/net/${1}/device/rfkill*/state 2> /dev/null)
+	local output=$(cat /sys/class/net/${1}/device/rfkill*/state 2> /dev/null)
 	# 1 is rfkill not active
 	[ "$output" = "1" ] && return 1
 	[ "$output" = "0" -o "$output" = "2" ] && return 0


More information about the pld-cvs-commit mailing list