From 285473ae10611849129eb16050ea6d6b8d84388d Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Wed, 1 Aug 2018 17:41:08 +0200 Subject: network/ifup/ifdown: deprecation warnings for 'network-scripts' added In case of 'network' service these warnings are displayed only once, to not spam unnecessarily user's journalctl if they have many NICs. --- network-scripts/ifdown | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'network-scripts/ifdown') diff --git a/network-scripts/ifdown b/network-scripts/ifdown index 18cee69d..aeb2f60c 100755 --- a/network-scripts/ifdown +++ b/network-scripts/ifdown @@ -16,6 +16,12 @@ CONFIG=$1 exit 1 } +if ! 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 +fi + need_config "${CONFIG}" [ -f "$CONFIG" ] || { -- cgit v1.2.1