diff options
author | David Kaspar [Dee'Kej] <dkaspar@redhat.com> | 2018-08-01 17:41:08 +0200 |
---|---|---|
committer | Dee'Kej <deekej@linuxmail.org> | 2018-08-02 13:31:01 +0200 |
commit | de16adb62bfc62cdfb2fce185d83bfe157c41803 (patch) | |
tree | a73503627c4db8dd138efa6161237e7b4bed30ae /etc/rc.d/init.d | |
parent | 765c1737b3e3e4ca38f0140bcfadc3f2c11a7413 (diff) | |
download | initscripts-de16adb62bfc62cdfb2fce185d83bfe157c41803.tar initscripts-de16adb62bfc62cdfb2fce185d83bfe157c41803.tar.gz initscripts-de16adb62bfc62cdfb2fce185d83bfe157c41803.tar.bz2 initscripts-de16adb62bfc62cdfb2fce185d83bfe157c41803.tar.xz initscripts-de16adb62bfc62cdfb2fce185d83bfe157c41803.zip |
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.
Diffstat (limited to 'etc/rc.d/init.d')
-rwxr-xr-x | etc/rc.d/init.d/network | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.d/init.d/network b/etc/rc.d/init.d/network index 06723859..36c1a922 100755 --- a/etc/rc.d/init.d/network +++ b/etc/rc.d/init.d/network @@ -49,6 +49,13 @@ 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 from distribution in near future." 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' + # See how we were called. case "$1" in start) |