aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-plusb
diff options
context:
space:
mode:
authorPhil Dibowitz <phil@ipom.com>2016-10-05 17:14:08 +0200
committerLukáš Nykrýn <lnykryn@redhat.com>2016-10-12 14:30:08 +0200
commit5c603b1da767ad0075493ca02286312039dbe0dc (patch)
tree0fbc5df0c3a8b6a37731e0c03473c26c455130fd /sysconfig/network-scripts/ifup-plusb
parentc282b9ebefae10e5b39c404a16a4d2af39d956bf (diff)
downloadinitscripts-5c603b1da767ad0075493ca02286312039dbe0dc.tar
initscripts-5c603b1da767ad0075493ca02286312039dbe0dc.tar.gz
initscripts-5c603b1da767ad0075493ca02286312039dbe0dc.tar.bz2
initscripts-5c603b1da767ad0075493ca02286312039dbe0dc.tar.xz
initscripts-5c603b1da767ad0075493ca02286312039dbe0dc.zip
[3/3] Remove tabs and fix spacing: ifup/ifdown scripts
Diffstat (limited to 'sysconfig/network-scripts/ifup-plusb')
-rwxr-xr-xsysconfig/network-scripts/ifup-plusb10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysconfig/network-scripts/ifup-plusb b/sysconfig/network-scripts/ifup-plusb
index ce5a0321..1b29afeb 100755
--- a/sysconfig/network-scripts/ifup-plusb
+++ b/sysconfig/network-scripts/ifup-plusb
@@ -19,7 +19,7 @@ source_config
if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]
then
- exit
+ exit
fi
[ -z "$PREFIX" ] && eval $(/bin/ipcalc --prefix ${IPADDR} ${NETMASK})
@@ -34,10 +34,10 @@ ip link set up 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