aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-plip
diff options
context:
space:
mode:
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