aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-post
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2016-10-29 14:50:38 +0200
committerLukáš Nykrýn <lnykryn@redhat.com>2016-10-31 15:35:50 +0100
commitb4bc3909d253b3211b01bee3a70c43cab3c58861 (patch)
tree676e9400331be9488f436f71d9f69470f248e342 /sysconfig/network-scripts/ifup-post
parent43ebe1cf2ba3296ee0c9a4b353f548be30801909 (diff)
downloadinitscripts-b4bc3909d253b3211b01bee3a70c43cab3c58861.tar
initscripts-b4bc3909d253b3211b01bee3a70c43cab3c58861.tar.gz
initscripts-b4bc3909d253b3211b01bee3a70c43cab3c58861.tar.bz2
initscripts-b4bc3909d253b3211b01bee3a70c43cab3c58861.tar.xz
initscripts-b4bc3909d253b3211b01bee3a70c43cab3c58861.zip
ifup-post: introduce new configuration option NOROUTESET
This has patch has been suggested in RHBZ #950453, by Konrad Moson.
Diffstat (limited to 'sysconfig/network-scripts/ifup-post')
-rwxr-xr-xsysconfig/network-scripts/ifup-post4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index 9b1e3ac9..ab0710b3 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -23,7 +23,9 @@ if is_false "$ISALIAS"; then
/etc/sysconfig/network-scripts/ifup-aliases ${DEVICE} ${CONFIG}
fi
-/etc/sysconfig/network-scripts/ifup-routes ${REALDEVICE} ${DEVNAME}
+if ! is_true "$NOROUTESET"; then
+ /etc/sysconfig/network-scripts/ifup-routes ${REALDEVICE} ${DEVNAME}
+fi
if ! is_false "$PEERDNS" || [ -n "$RESOLV_MODS" ] && ! is_false "$RESOLV_MODS"; then