aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-10-04 15:20:17 +0000
committerBill Nottingham <notting@redhat.com>2000-10-04 15:20:17 +0000
commitda07f250aa6ee2d5ef587f18c4696f61f7676cc0 (patch)
tree5d9d4dda491d9e2b446939bc88ba84b13cb0084e /rc.d/init.d
parentd0107841fabc9d2bfe3639be3bdee9506f07c2e6 (diff)
downloadinitscripts-da07f250aa6ee2d5ef587f18c4696f61f7676cc0.tar
initscripts-da07f250aa6ee2d5ef587f18c4696f61f7676cc0.tar.gz
initscripts-da07f250aa6ee2d5ef587f18c4696f61f7676cc0.tar.bz2
initscripts-da07f250aa6ee2d5ef587f18c4696f61f7676cc0.tar.xz
initscripts-da07f250aa6ee2d5ef587f18c4696f61f7676cc0.zip
fix the grep for 'UP' so it doesn't report strange results on german PPP devices
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/network2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 7e15822f..76b3c76c 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -93,7 +93,7 @@ case "$1" in
fi
for i in $interfaces ; do
- if ifconfig $i 2>/dev/null | grep -q "UP" >/dev/null 2>&1 ; then
+ if ifconfig $i 2>/dev/null | LANG=C grep -q " UP " >/dev/null 2>&1 ; then
action "Shutting down interface $i: " ./ifdown $i boot
fi
done