diff options
author | Bill Nottingham <notting@redhat.com> | 2004-10-17 03:42:51 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-10-17 03:42:51 +0000 |
commit | 860ee4d2468956a368a5ed78fcd2331285709abe (patch) | |
tree | 4338d12e76205dfd66f51a373b19289b224f6d8f /sysconfig/network-scripts/network-functions-ipv6 | |
parent | 826538c3a9d9d151c35460cabc9dac3bada937cd (diff) | |
download | initscripts-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/network-functions-ipv6')
-rw-r--r-- | sysconfig/network-scripts/network-functions-ipv6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6 index 677bafa0..3922965f 100644 --- a/sysconfig/network-scripts/network-functions-ipv6 +++ b/sysconfig/network-scripts/network-functions-ipv6 @@ -573,9 +573,9 @@ ipv6_test_addr_exists_on_device() { local test_prefixlength="`echo $convertresult | awk '{ print $3 }'`" if [ -z "$test_prefixlength" ]; then - local testresult="`LC_ALL=C grep "$test_addr .. .. $test_scope .." /proc/net/if_inet6 | LC_ALL=C grep $testdevice$`" + local testresult="`LC_ALL=C grep "$test_addr .. .. $test_scope .." /proc/net/if_inet6 2>/dev/null | LC_ALL=C grep $testdevice$`" else - local testresult="`LC_ALL=C grep "$test_addr .. $test_prefixlength $test_scope .." /proc/net/if_inet6 | LC_ALL=C grep $testdevice$`" + local testresult="`LC_ALL=C grep "$test_addr .. $test_prefixlength $test_scope .." /proc/net/if_inet6 2>/dev/null | LC_ALL=C grep $testdevice$`" fi if [ -n "$testresult" ]; then # exists |