aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts/ifup
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-08-01 17:41:08 +0200
committerDee'Kej <deekej@linuxmail.org>2018-08-02 13:31:01 +0200
commitde16adb62bfc62cdfb2fce185d83bfe157c41803 (patch)
treea73503627c4db8dd138efa6161237e7b4bed30ae /network-scripts/ifup
parent765c1737b3e3e4ca38f0140bcfadc3f2c11a7413 (diff)
downloadinitscripts-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 'network-scripts/ifup')
-rwxr-xr-xnetwork-scripts/ifup6
1 files changed, 6 insertions, 0 deletions
diff --git a/network-scripts/ifup b/network-scripts/ifup
index d25db5af..a90295b7 100755
--- a/network-scripts/ifup
+++ b/network-scripts/ifup
@@ -31,6 +31,12 @@ CONFIG=${1}
exit 1
}
+if ! 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 from distribution in near future." warning ifup
+ net_log $"It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well." warning ifup
+fi
+
need_config "${CONFIG}"
[ -f "${CONFIG}" ] || {