aboutsummaryrefslogtreecommitdiffstats
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 12:41:13 +0200
commite92401ef4c2d317601f6280d654cd2b7b297e8b7 (patch)
treeae2bf22427a87310419169dfe2be779fedbbbb67
parent27724e4df026baa6def7d44ed08f4b8a7c1fdec7 (diff)
downloadinitscripts-e92401ef4c2d317601f6280d654cd2b7b297e8b7.tar
initscripts-e92401ef4c2d317601f6280d654cd2b7b297e8b7.tar.gz
initscripts-e92401ef4c2d317601f6280d654cd2b7b297e8b7.tar.bz2
initscripts-e92401ef4c2d317601f6280d654cd2b7b297e8b7.tar.xz
initscripts-e92401ef4c2d317601f6280d654cd2b7b297e8b7.zip
network/ifup/ifdown: deprecations warnings redirected to stderr
-rwxr-xr-xetc/rc.d/init.d/network6
-rwxr-xr-xnetwork-scripts/ifdown6
-rwxr-xr-xnetwork-scripts/ifup6
3 files changed, 9 insertions, 9 deletions
diff --git a/etc/rc.d/init.d/network b/etc/rc.d/init.d/network
index 36c1a922..ade227ef 100755
--- a/etc/rc.d/init.d/network
+++ b/etc/rc.d/init.d/network
@@ -49,9 +49,9 @@ 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
+net_log $"You are using 'network' service provided by 'network-scripts', which are now deprecated." warning network >&2
+net_log $"'network-scripts' will be removed from distribution in near future." warning network >&2
+net_log $"It is advised to switch to 'NetworkManager' instead for network management." warning network >&2
# This disables additional warnings during the boot process:
export DEPRECATION_WARNING_ISSUED='true'
diff --git a/network-scripts/ifdown b/network-scripts/ifdown
index 5fb6a793..aa8fce7b 100755
--- a/network-scripts/ifdown
+++ b/network-scripts/ifdown
@@ -17,9 +17,9 @@ CONFIG=$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 from distribution in near future." 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 from distribution in near future." 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 a90295b7..435c3176 100755
--- a/network-scripts/ifup
+++ b/network-scripts/ifup
@@ -32,9 +32,9 @@ CONFIG=${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
+ 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 from distribution in near future." 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}"