From 8439a7aa971d7a5b2bbc6b8339a32c3eadaf7e9e Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 19 Nov 2001 10:26:48 +0000 Subject: added \ on the end of the multiline if --- sysconfig/network-scripts/ifup-post | 8 ++++---- sysconfig/network-scripts/network-functions | 4 ++-- 2 files changed, 6 insertions(+), 6 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 }'` diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 2793fa08..4d937ac5 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -179,8 +179,8 @@ add_default_route () { . /etc/sysconfig/network find_gateway_dev - if [ "${GATEWAY}" != "" -a - "${GATEWAY}" != "none" -a + if [ "${GATEWAY}" != "" -a \ + "${GATEWAY}" != "none" -a \ "${GATEWAYDEV}" != "" ] ; then if ! check_device_down $1; then if [ "$GATEWAY" = "0.0.0.0" ]; then -- cgit v1.2.1