]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - sysconfig/network-scripts/ifdown
- force LC_ALL=C when grepping data from possibly localized program outputs
[projects/rc-scripts.git] / sysconfig / network-scripts / ifdown
index 9458fb78b4836c0505a2ff64424a36b426485183..108f8cb49722228a08e5dfa9ad448d4c4b59c9a6 100755 (executable)
@@ -110,7 +110,7 @@ check_device_down && exit 0
 if [ -n "${SUBDEVICE}" ]; then
        ip addr del ${IP4ADDR} label ${SUBDEVICE} dev ${DEVICE}
 else
-       ip addr flush dev ${DEVICE} 2>&1 | grep -v "Nothing to flush"
+       LC_ALL=C ip addr flush dev ${DEVICE} 2>&1 | grep -v "Nothing to flush"
 
        if [ ${DEVICETYPE} = "bond" ]; then
                if [ ! -x /sbin/ifenslave ]; then
This page took 0.135968 seconds and 4 git commands to generate.