SVN: rc-scripts/trunk/sysconfig/network-scripts/ifdown-vlan

glen glen at pld-linux.org
Mon Mar 9 19:50:51 CET 2009


Author: glen
Date: Mon Mar  9 19:50:51 2009
New Revision: 10182

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/ifdown-vlan
Log:
- ip link help might be localized, remove unneeded subshell

Modified: rc-scripts/trunk/sysconfig/network-scripts/ifdown-vlan
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/ifdown-vlan	(original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifdown-vlan	Mon Mar  9 19:50:51 2009
@@ -39,7 +39,7 @@
 ip link set ${DEVICE} down
 LC_ALL=C ip addr flush dev ${DEVICE} 2>&1 | grep -v "Nothing to flush"
 
-if (ip link help 2>&1 | grep -q del); then
+if LC_ALL=C ip link help 2>&1 | grep -q del; then
 	/sbin/ip link del ${DEVICE}
 elif [ -x /sbin/vconfig ]; then
 	/sbin/vconfig rem ${DEVICE}


More information about the pld-cvs-commit mailing list