diff options
Diffstat (limited to 'network-scripts')
-rwxr-xr-x | network-scripts/ifdown | 6 | ||||
-rwxr-xr-x | network-scripts/ifup | 6 |
2 files changed, 12 insertions, 0 deletions
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" ] || { diff --git a/network-scripts/ifup b/network-scripts/ifup index d25db5af..574f5554 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 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 +fi + need_config "${CONFIG}" [ -f "${CONFIG}" ] || { |