From 335a6a84f618515c6902d374e391a301d0f43f6c Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Thu, 2 Aug 2018 15:05:17 +0200 Subject: network/ifup/ifdown: allow disabling of deprecation warnings ... by checking existence of /etc/sysconfig/disable-deprecation-warnings --- etc/rc.d/init.d/network | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'etc') diff --git a/etc/rc.d/init.d/network b/etc/rc.d/init.d/network index dfa81172..798e0d09 100755 --- a/etc/rc.d/init.d/network +++ b/etc/rc.d/init.d/network @@ -49,12 +49,14 @@ interfaces=$(ls ifcfg-* | \ LC_ALL=C sed 's/ //') rc=0 -net_log $"You are using 'network' service provided by 'network-scripts', which are now deprecated." warning network -net_log $"'network-scripts' will be removed in one of the next major releases of RHEL." warning network -net_log $"It is advised to switch to 'NetworkManager' instead for network management." warning network +if ! [ -f /etc/sysconfig/disable-deprecation-warnings ]; then + net_log $"You are using 'network' service provided by 'network-scripts', which are now deprecated." warning network + net_log $"'network-scripts' will be removed in one of the next major releases of RHEL." warning network + net_log $"It is advised to switch to 'NetworkManager' instead for network management." warning network -# This disables additional warnings during the boot process: -export DEPRECATION_WARNING_ISSUED='true' + # This disables additional warnings during the boot process: + export DEPRECATION_WARNING_ISSUED='true' +fi # See how we were called. case "$1" in -- cgit v1.2.1