aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-post
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-12-12 05:31:49 +0000
committerBill Nottingham <notting@redhat.com>2000-12-12 05:31:49 +0000
commit7598f8cb5a31d96c26090cadda678c1ea1a5dc37 (patch)
tree31ead2ef1da6fd86f05e5412fc9a73d00e171c18 /sysconfig/network-scripts/ifup-post
parent627c85848617976158d87542b8ed87100f171979 (diff)
downloadinitscripts-7598f8cb5a31d96c26090cadda678c1ea1a5dc37.tar
initscripts-7598f8cb5a31d96c26090cadda678c1ea1a5dc37.tar.gz
initscripts-7598f8cb5a31d96c26090cadda678c1ea1a5dc37.tar.bz2
initscripts-7598f8cb5a31d96c26090cadda678c1ea1a5dc37.tar.xz
initscripts-7598f8cb5a31d96c26090cadda678c1ea1a5dc37.zip
fix more ifconfig greps (patch from Conectiva)
Diffstat (limited to 'sysconfig/network-scripts/ifup-post')
-rwxr-xr-xsysconfig/network-scripts/ifup-post2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index e0517ec0..ed108fe3 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -23,7 +23,7 @@ fi
# don't set hostname on ppp/slip connections
if [ "$2" = "boot" -a -n "$NEEDHOSTNAME" -a "${DEVICE}" != lo -a "${DEVICETYPE}" != "ppp" -a "${DEVICETYPE}" != "slip" ]; then
- IPADDR=`ifconfig ${DEVICE} | grep 'inet addr' |
+ IPADDR=`LANG= LC_ALL= ifconfig ${DEVICE} | grep 'inet addr' |
awk -F: '{ print $2 } ' | awk '{ print $1 }'`
eval `/bin/ipcalc --silent --hostname ${IPADDR}` && set_hostname $HOSTNAME
fi