diff options
author | Bill Nottingham <notting@redhat.com> | 2001-03-14 06:55:17 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-03-14 06:55:17 +0000 |
commit | 4cfe4dae033a94827436b7db7955974c214e3b39 (patch) | |
tree | 9635ddb6d1bcedfa3c603f887ba72e0469addf66 /sysconfig | |
parent | 72e8701a43721caead46eb94650ab339d55f64f0 (diff) | |
download | initscripts-4cfe4dae033a94827436b7db7955974c214e3b39.tar initscripts-4cfe4dae033a94827436b7db7955974c214e3b39.tar.gz initscripts-4cfe4dae033a94827436b7db7955974c214e3b39.tar.bz2 initscripts-4cfe4dae033a94827436b7db7955974c214e3b39.tar.xz initscripts-4cfe4dae033a94827436b7db7955974c214e3b39.zip |
use 'route -n' when grepping; avoid DNS
Diffstat (limited to 'sysconfig')
-rw-r--r-- | sysconfig/network-scripts/network-functions-ipv6 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6 index 567176bc..4ae37ab8 100644 --- a/sysconfig/network-scripts/network-functions-ipv6 +++ b/sysconfig/network-scripts/network-functions-ipv6 @@ -255,7 +255,7 @@ function ifdown_ipv6_autotunnel() { # still up? # disable IPv6-over-IPv4 tunnels (if a tunnel is no longer up) - if LC_ALL=C route -A inet6 -n | grep sit0 | awk '{ print $2 }' | grep -v -q "^::$"; then + if LC_ALL=C route -n -A inet6 -n | grep sit0 | awk '{ print $2 }' | grep -v -q "^::$"; then # still existing routes, skip shutdown of sit0 true elif LC_ALL=C ifconfig sit0 | grep 'inet6 addr:' | awk '{ print $3 }' | grep -v -q '^::'; then @@ -393,7 +393,7 @@ function ifdown_ipv6_tunnel_all() { return 1 fi # Get all IPv6 routes through given interface and remove them - LC_ALL=C route -A inet6 | grep "::$idtuall_tunnel" | while read ipv6net nexthop flags metric ref use iface args; do + LC_ALL=C route -n -A inet6 | grep "::$idtuall_tunnel" | while read ipv6net nexthop flags metric ref use iface args; do if [ "::$idtuall_tunnel" = "$nexthop" ]; then if echo $flags | grep -v -q "A"; then # Only non addrconf (automatic installed) routes should be removed @@ -536,7 +536,7 @@ function ifdown_ipv6_real_all() { fi # Get all IPv6 routes through given interface and remove them - LC_ALL=C route -A inet6 | grep $idall_device | while read ipv6net nexthop flags metric ref use iface args; do + LC_ALL=C route -n -A inet6 | grep $idall_device | while read ipv6net nexthop flags metric ref use iface args; do if [ "$idall_device" = "$iface" ]; then if echo $flags | grep -v -q "A"; then # Only non addrconf (automatic installed) routes should be removed |