aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-post
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifup-post')
-rwxr-xr-xsysconfig/network-scripts/ifup-post8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index 09734aee..370ad7e1 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -98,10 +98,10 @@ if [ "$FIREWALL_MODS" != "no" -a -n "$FWACTIVE" ]; then
fi
# don't set hostname on ppp/slip connections
-if [ "$2" = "boot" -a
- need_hostname -a
- "${DEVICE}" != lo -a
- "${DEVICETYPE}" != "ppp" -a
+if [ "$2" = "boot" -a \
+ need_hostname -a \
+ "${DEVICE}" != lo -a \
+ "${DEVICETYPE}" != "ppp" -a \
"${DEVICETYPE}" != "slip" ]; then
IPADDR=`LANG= LC_ALL= ifconfig ${DEVICE} | grep 'inet addr' |
awk -F: '{ print $2 } ' | awk '{ print $1 }'`