diff options
author | David Kaspar [Dee'Kej] <dkaspar@redhat.com> | 2016-10-29 14:50:38 +0200 |
---|---|---|
committer | Lukáš Nykrýn <lnykryn@redhat.com> | 2016-10-31 15:35:50 +0100 |
commit | b4bc3909d253b3211b01bee3a70c43cab3c58861 (patch) | |
tree | 676e9400331be9488f436f71d9f69470f248e342 /sysconfig | |
parent | 43ebe1cf2ba3296ee0c9a4b353f548be30801909 (diff) | |
download | initscripts-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')
-rwxr-xr-x | sysconfig/network-scripts/ifup-post | 4 |
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 |