diff options
author | Bill Nottingham <notting@redhat.com> | 2001-06-29 22:18:09 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-06-29 22:18:09 +0000 |
commit | f1a7234440ef762a3f659fe3c6dc4f5bfe8234f1 (patch) | |
tree | 0e8eea09ea33b85528acce0e052ea3371b515c25 /sysconfig/network-scripts/ifup | |
parent | 09f3739f065703adf268e1d6df48556b430a9dd5 (diff) | |
download | initscripts-f1a7234440ef762a3f659fe3c6dc4f5bfe8234f1.tar initscripts-f1a7234440ef762a3f659fe3c6dc4f5bfe8234f1.tar.gz initscripts-f1a7234440ef762a3f659fe3c6dc4f5bfe8234f1.tar.bz2 initscripts-f1a7234440ef762a3f659fe3c6dc4f5bfe8234f1.tar.xz initscripts-f1a7234440ef762a3f659fe3c6dc4f5bfe8234f1.zip |
run more stuff with C locale, mark some more strings for translation
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 25e24860..670db6ef 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -89,7 +89,7 @@ fi # is this device available? (this catches PCMCIA devices for us) LC_ALL= LANG= ip -o link | grep -q ${REALDEVICE} if [ "$?" = "1" ]; then - modprobe -c | grep -q ${REALDEVICE} && modprobe ${REALDEVICE} || { + LC_ALL=C modprobe -c | grep -q ${REALDEVICE} && modprobe ${REALDEVICE} || { echo $"Device does not seem to be present, delaying ${DEVICE} initialization." exit 1 } @@ -149,7 +149,7 @@ if [ -n "${DYNCONFIG}" ]; then fi echo -n $"Determining IP information for ${DEVICE}..." if check_link_down ${DEVICE}; then - echo " failed; no link present. Check cable?" + echo $" failed; no link present. Check cable?" exit 1 fi @@ -209,7 +209,7 @@ else fi - if ! ip addr ls ${DEVICE} | grep -q "${IPADDR}/${PREFIX}" ; then + if ! LC_ALL=C ip addr ls ${DEVICE} | grep -q "${IPADDR}/${PREFIX}" ; then if ! ip addr add ${IPADDR}/${PREFIX} \ brd ${BROADCAST:-+} dev ${DEVICE} ; then echo $"Error adding address ${IPADDR} for ${DEVICE}." |