aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-plip
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2017-03-21 17:19:32 +0100
committerDee'Kej <deekej@linuxmail.org>2017-03-22 14:42:25 +0100
commit9ab04edfb16c30f9bb03b1227b60cc751a692876 (patch)
tree3e6fc4fc204e30a341d78286e0b3c8010802e13a /sysconfig/network-scripts/ifup-plip
parent0649ea591e8d95415847da3ceeb4c2ba49d01248 (diff)
downloadinitscripts-9ab04edfb16c30f9bb03b1227b60cc751a692876.tar
initscripts-9ab04edfb16c30f9bb03b1227b60cc751a692876.tar.gz
initscripts-9ab04edfb16c30f9bb03b1227b60cc751a692876.tar.bz2
initscripts-9ab04edfb16c30f9bb03b1227b60cc751a692876.tar.xz
initscripts-9ab04edfb16c30f9bb03b1227b60cc751a692876.zip
9.70-sync: sysconfig/network-scripts/* updated - part 1
This commit contains only whitespace & indentation style changes.
Diffstat (limited to 'sysconfig/network-scripts/ifup-plip')
-rwxr-xr-xsysconfig/network-scripts/ifup-plip13
1 files changed, 6 insertions, 7 deletions
diff --git a/sysconfig/network-scripts/ifup-plip b/sysconfig/network-scripts/ifup-plip
index c3b9efa1..2cea68b4 100755
--- a/sysconfig/network-scripts/ifup-plip
+++ b/sysconfig/network-scripts/ifup-plip
@@ -6,9 +6,8 @@ cd /etc/sysconfig/network-scripts
CONFIG=$1
source_config
-if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]
-then
- exit
+if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]; then
+ exit
fi
[ -z "$PREFIX" ] && eval $(/bin/ipcalc --prefix ${IPADDR} ${NETMASK})
@@ -19,10 +18,10 @@ ip route add ${NETWORK} dev ${DEVICE}
. /etc/sysconfig/network
if [ "${GATEWAY}" != "" ]; then
- if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then
- # set up default gateway
- ip route replace default ${METRIC:+metric $METRIC} via ${GATEWAY}
- fi
+ if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then
+ # set up default gateway
+ ip route replace default ${METRIC:+metric $METRIC} via ${GATEWAY}
+ fi
fi
/etc/sysconfig/network-scripts/ifup-post $1