diff options
author | Bill Nottingham <notting@redhat.com> | 2001-02-28 17:50:12 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-02-28 17:50:12 +0000 |
commit | 1ffe59a8ab83d5e1f87efa8f71a4e6d44aa62fca (patch) | |
tree | 42ae0bc7f8d3cec2ea6e9dce8125651aee34add8 /sysconfig | |
parent | 6d076aed04ea05b736a901481b44415636e06089 (diff) | |
download | initscripts-1ffe59a8ab83d5e1f87efa8f71a4e6d44aa62fca.tar initscripts-1ffe59a8ab83d5e1f87efa8f71a4e6d44aa62fca.tar.gz initscripts-1ffe59a8ab83d5e1f87efa8f71a4e6d44aa62fca.tar.bz2 initscripts-1ffe59a8ab83d5e1f87efa8f71a4e6d44aa62fca.tar.xz initscripts-1ffe59a8ab83d5e1f87efa8f71a4e6d44aa62fca.zip |
run ifconfig in locale C
Diffstat (limited to 'sysconfig')
-rw-r--r-- | sysconfig/network-scripts/network-functions-ipv6 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6 index 52d4904c..880657ff 100644 --- a/sysconfig/network-scripts/network-functions-ipv6 +++ b/sysconfig/network-scripts/network-functions-ipv6 @@ -56,7 +56,7 @@ function forwarding_ipv6() { fw_device=$2 # maybe empty if [ -z $fw_control ]; then - echo $"Missing parameter forwarding control'" + echo $"Missing parameter 'forwarding control'" forwarding_ipv6_usage return 1 fi @@ -150,7 +150,7 @@ function ifdown_ipv6_route() { device=$3 # maybe empty if [ -z $networkipv6 ]; then - echo $"Missing parameter IPv6-network'" + echo $"Missing parameter 'IPv6-network'" ifup_ipv6_route_usage return 1 fi @@ -189,7 +189,7 @@ function ifup_ipv6_autotunnel() { # enable IPv6-over-IPv4 tunnels - if ifconfig sit0 | grep -q "UP "; then + if LANG=C ifconfig sit0 | grep -q "UP "; then # already up, do nothing true else @@ -342,7 +342,7 @@ function ifup_ipv6_real() { fi # Test status of interface - if ifconfig $device | grep -q "UP "; then + if LANG=C ifconfig $device | grep -q "UP "; then # Interface is up true else @@ -370,8 +370,8 @@ function ifup_ipv6_real() { # Only add, if address do not already exist - address_configured="`ifconfig $device | grep "inet6 addr:" | grep "$address" | awk '{ print $3 }'`" - address_configured_type="`ifconfig $device | grep "inet6 addr:" | grep "$address" | awk '{ print $4 }'`" + address_configured="`LANG=C ifconfig $device | grep "inet6 addr:" | grep "$address" | awk '{ print $3 }'`" + address_configured_type="`LANG=C ifconfig $device | grep "inet6 addr:" | grep "$address" | awk '{ print $4 }'`" if [ "$address_configured" = "$address" ]; then true @@ -405,7 +405,7 @@ function ifdown_ipv6_real_all() { done # Get all IPv6 addresses assigned to given interface and remove them - ifconfig $idall_device | grep "inet6 addr:" | awk '{ print $3 }' | while read ipv6addr args; do + LANG=C ifconfig $idall_device | grep "inet6 addr:" | awk '{ print $3 }' | while read ipv6addr args; do ifdown_ipv6_real $idall_device $ipv6addr done } @@ -454,8 +454,8 @@ function ifdown_ipv6_real() { # Only remove, if address exists and is not link-local (prevents from kernel crashing) - address_configured="`ifconfig $device | grep "inet6 addr:" | grep "$address" | awk '{ print $3 }'`" - address_configured_type="`ifconfig $device | grep "inet6 addr:" | grep "$address" | awk '{ print $4 }'`" + address_configured="`LANG=C ifconfig $device | grep "inet6 addr:" | grep "$address" | awk '{ print $3 }'`" + address_configured_type="`LANG=C ifconfig $device | grep "inet6 addr:" | grep "$address" | awk '{ print $4 }'`" if [ ! -z "$address_configured" ]; then if [ "$address_configured_type" = "Scope:Link" ]; then true |