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 --- network-scripts/ifdown | 2 +- network-scripts/ifup | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'network-scripts') diff --git a/network-scripts/ifdown b/network-scripts/ifdown index aeb2f60c..9b4add62 100755 --- a/network-scripts/ifdown +++ b/network-scripts/ifdown @@ -16,7 +16,7 @@ CONFIG=$1 exit 1 } -if ! is_true ${DEPRECATION_WARNING_ISSUED}; then +if ! [ -f /etc/sysconfig/disable-deprecation-warnings ] && ! is_true ${DEPRECATION_WARNING_ISSUED}; then net_log $"You are using 'ifdown' script provided by 'network-scripts', which are now deprecated." warning ifdown net_log $"'network-scripts' will be removed in one of the next major releases of RHEL." warning ifdown net_log $"It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well." warning ifdown diff --git a/network-scripts/ifup b/network-scripts/ifup index 574f5554..8d7af318 100755 --- a/network-scripts/ifup +++ b/network-scripts/ifup @@ -31,7 +31,7 @@ CONFIG=${1} exit 1 } -if ! is_true ${DEPRECATION_WARNING_ISSUED}; then +if ! [ -f /etc/sysconfig/disable-deprecation-warnings ] && ! is_true ${DEPRECATION_WARNING_ISSUED}; then net_log $"You are using 'ifup' script provided by 'network-scripts', which are now deprecated." warning ifup net_log $"'network-scripts' will be removed in one of the next major releases of RHEL." warning ifup net_log $"It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well." warning ifup -- cgit v1.2.1