[PATCH] Correctly inform the user once about obsolete parm/conf file options on s390

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 loader/linuxrc.s390 |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index d32ee9b..feffb38 100644
--- a/loader/linuxrc.s390
+++ b/loader/linuxrc.s390
@@ -2043,6 +2043,24 @@ function do_netmask() {
     # no handling/configuring of NETMASK yet, since more parameters needed
 }
 
+### NETWORK
+
+function do_network() {
+    echo
+    echo $"The NETWORK parameter isn't used anymore and will be ignored."
+    echo $" It is sufficient to specify IPADDR and NETMASK."
+    echo
+}
+
+### BROADCAST
+
+function do_broadcast() {
+    echo
+    echo $"The BROADCAST parameter isn't used anymore and will be ignored."
+    echo $" It is sufficient to specify IPADDR and NETMASK."
+    echo
+}
+
 ### NETMASK (IPv6)
 
 function syntax_check_prefix_v6() {
@@ -2777,6 +2795,10 @@ fi
 [ -n "$MMTU" ] && mmtu_was_set=$MMTU
 [ -n "$VSWITCH" ] && vswitch_was_set=$VSWITCH
 
+[ -n "$CHANDEV" ] && do_chandev
+[ -n "$NETWORK" ] && do_network
+[ -n "$BROADCAST" ] && do_broadcast
+
 # [ -z "${cardtype//OSD_*/}" ] can be used to check for real OSA
 
 # Check for missing parameters, prompt for them if necessary
@@ -2797,7 +2819,6 @@ while : ; do
     # precondition: driver (qeth/lcs/ctcm/netiucv) loaded incl. dependencies
     if [ "$NETTYPE" != "iucv" ]; then
         # all interface types except for iucv have ccw config
-        [ -n "$CHANDEV" ] && do_chandev
         do_subchannels
         if [ "$NETTYPE" = "qeth" ]; then
             [ -z "$reenter" -a -n "$RUNKS" -a -z "$PORTNAME" ] || \
-- 
1.6.4


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux