aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-08-06 11:15:47 +0200
committerDee'Kej <deekej@linuxmail.org>2018-08-06 13:05:14 +0200
commitb163b3a66dc3684181f219f424e2dd81eff691f6 (patch)
tree34c8f2e475e11e4c91337c49e7bcb7b427eeab50 /network-scripts
parenta5703b885834fd47adcbf196f3e721b365c2b7f2 (diff)
downloadinitscripts-b163b3a66dc3684181f219f424e2dd81eff691f6.tar
initscripts-b163b3a66dc3684181f219f424e2dd81eff691f6.tar.gz
initscripts-b163b3a66dc3684181f219f424e2dd81eff691f6.tar.bz2
initscripts-b163b3a66dc3684181f219f424e2dd81eff691f6.tar.xz
initscripts-b163b3a66dc3684181f219f424e2dd81eff691f6.zip
network/ifup/ifdown: deprecations warnings redirected to stderr
Diffstat (limited to 'network-scripts')
-rwxr-xr-xnetwork-scripts/ifdown6
-rwxr-xr-xnetwork-scripts/ifup6
2 files changed, 6 insertions, 6 deletions
diff --git a/network-scripts/ifdown b/network-scripts/ifdown
index 9b4add62..d04dad4c 100755
--- a/network-scripts/ifdown
+++ b/network-scripts/ifdown
@@ -17,9 +17,9 @@ CONFIG=$1
}
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
+ net_log $"You are using 'ifdown' script provided by 'network-scripts', which are now deprecated." warning ifdown >&2
+ net_log $"'network-scripts' will be removed in one of the next major releases of RHEL." warning ifdown >&2
+ net_log $"It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well." warning ifdown >&2
fi
need_config "${CONFIG}"
diff --git a/network-scripts/ifup b/network-scripts/ifup
index 8d7af318..69b0bd24 100755
--- a/network-scripts/ifup
+++ b/network-scripts/ifup
@@ -32,9 +32,9 @@ CONFIG=${1}
}
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
+ net_log $"You are using 'ifup' script provided by 'network-scripts', which are now deprecated." warning ifup >&2
+ net_log $"'network-scripts' will be removed in one of the next major releases of RHEL." warning ifup >&2
+ net_log $"It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well." warning ifup >&2
fi
need_config "${CONFIG}"