aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ipv6
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-10-17 03:42:51 +0000
committerBill Nottingham <notting@redhat.com>2004-10-17 03:42:51 +0000
commit860ee4d2468956a368a5ed78fcd2331285709abe (patch)
tree4338d12e76205dfd66f51a373b19289b224f6d8f /sysconfig/network-scripts/ifup-ipv6
parent826538c3a9d9d151c35460cabc9dac3bada937cd (diff)
downloadinitscripts-860ee4d2468956a368a5ed78fcd2331285709abe.tar
initscripts-860ee4d2468956a368a5ed78fcd2331285709abe.tar.gz
initscripts-860ee4d2468956a368a5ed78fcd2331285709abe.tar.bz2
initscripts-860ee4d2468956a368a5ed78fcd2331285709abe.tar.xz
initscripts-860ee4d2468956a368a5ed78fcd2331285709abe.zip
some cleanups
Diffstat (limited to 'sysconfig/network-scripts/ifup-ipv6')
-rwxr-xr-xsysconfig/network-scripts/ifup-ipv68
1 files changed, 4 insertions, 4 deletions
diff --git a/sysconfig/network-scripts/ifup-ipv6 b/sysconfig/network-scripts/ifup-ipv6
index 8422234b..6ff924b0 100755
--- a/sysconfig/network-scripts/ifup-ipv6
+++ b/sysconfig/network-scripts/ifup-ipv6
@@ -149,7 +149,7 @@ fi
# Setup additional static IPv6 routes on specified interface, if given
if [ -f /etc/sysconfig/static-routes-ipv6 ]; then
- LC_ALL=C grep -w "^$DEVICE" /etc/sysconfig/static-routes-ipv6 | while read device args; do
+ LC_ALL=C grep -w "^$DEVICE" /etc/sysconfig/static-routes-ipv6 2>/dev/null | while read device args; do
ipv6_add_route $args $DEVICE
done
fi
@@ -245,7 +245,7 @@ if [ "$IPV6TO4INIT" = "yes" ]; then
# Add static routes
if [ -f /etc/sysconfig/static-routes-ipv6 ]; then
- LC_ALL=C grep -w "^tun6to4" /etc/sysconfig/static-routes-ipv6 | while read device network gateway; do
+ LC_ALL=C grep -w "^tun6to4" /etc/sysconfig/static-routes-ipv6 2>/dev/null | while read device network gateway; do
if [ -z "$network" ]; then
continue
fi
@@ -258,8 +258,8 @@ if [ "$IPV6TO4INIT" = "yes" ]; then
# Setup additional static IPv6 routes (newer config style)
if [ -f "/etc/sysconfig/network-scripts/route6-tun6to4" ]; then
- cat "/etc/sysconfig/network-scripts/route6-tun6to4" | sed 's/#.*//g' | grep -v '^[[:space:]]*$' | while read line; do
- if echo "$line" | grep -vq 'via'; then
+ cat "/etc/sysconfig/network-scripts/route6-tun6to4" | sed 's/#.*//g' | LC_ALL=C grep -v '^[[:space:]]*$' | while read line; do
+ if echo "$line" | LC_ALL=C grep -vq 'via'; then
# Add gateway if missing
line="$line via $ipv6to4_relay"
fi