diff options
author | Neal Gompa <ngompa13@gmail.com> | 2017-12-30 12:19:16 -0500 |
---|---|---|
committer | Neal Gompa <ngompa13@gmail.com> | 2017-12-30 12:22:39 -0500 |
commit | d54da94b818a0cf51352ba1f4cdeb857ebc92218 (patch) | |
tree | e5469d8c1a2cee28c5773349ea9544da179f934c /sysconfig/network-scripts/ifup-plusb | |
parent | d465fd1adf0105bf43261e9340bd8f8997f01839 (diff) | |
parent | 7fa374712f6da22f97bce84fff2e4cd535e9ef8d (diff) | |
download | initscripts-d54da94b818a0cf51352ba1f4cdeb857ebc92218.tar initscripts-d54da94b818a0cf51352ba1f4cdeb857ebc92218.tar.gz initscripts-d54da94b818a0cf51352ba1f4cdeb857ebc92218.tar.bz2 initscripts-d54da94b818a0cf51352ba1f4cdeb857ebc92218.tar.xz initscripts-d54da94b818a0cf51352ba1f4cdeb857ebc92218.zip |
Merge tag '9.78' into distro/mga
Tag as 9.78
Diffstat (limited to 'sysconfig/network-scripts/ifup-plusb')
-rw-r--r-- | sysconfig/network-scripts/ifup-plusb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sysconfig/network-scripts/ifup-plusb b/sysconfig/network-scripts/ifup-plusb index ce5a0321..1b29afeb 100644 --- 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 |