diff options
author | Harald Hoyer <harald@redhat.com> | 2001-11-19 10:26:48 +0000 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2001-11-19 10:26:48 +0000 |
commit | 8439a7aa971d7a5b2bbc6b8339a32c3eadaf7e9e (patch) | |
tree | 8ade5506ba4502a9151afa10d8d9cc5e6425c371 /sysconfig/network-scripts/ifup-post | |
parent | 70d1d57a2214ecc45344ea112f45f1ec47312523 (diff) | |
download | initscripts-8439a7aa971d7a5b2bbc6b8339a32c3eadaf7e9e.tar initscripts-8439a7aa971d7a5b2bbc6b8339a32c3eadaf7e9e.tar.gz initscripts-8439a7aa971d7a5b2bbc6b8339a32c3eadaf7e9e.tar.bz2 initscripts-8439a7aa971d7a5b2bbc6b8339a32c3eadaf7e9e.tar.xz initscripts-8439a7aa971d7a5b2bbc6b8339a32c3eadaf7e9e.zip |
added \ on the end of the multiline if
Diffstat (limited to 'sysconfig/network-scripts/ifup-post')
-rwxr-xr-x | sysconfig/network-scripts/ifup-post | 8 |
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 }'` |