summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Hopp <karsten@redhat.de>2004-11-08 11:58:30 +0000
committerKarsten Hopp <karsten@redhat.de>2004-11-08 11:58:30 +0000
commit773e5f4a96cabb8cac5e8737d78b59a1a92dc027 (patch)
tree8f37a2babddbc72798aeb9c7e26758ba5006608d
parent3ab3e3579269b35df01256504c42702c2b71fe30 (diff)
downloadanaconda-773e5f4a96cabb8cac5e8737d78b59a1a92dc027.tar.gz
anaconda-773e5f4a96cabb8cac5e8737d78b59a1a92dc027.tar.xz
anaconda-773e5f4a96cabb8cac5e8737d78b59a1a92dc027.zip
Don't ask for input if PORTNAME or CTCPROT are already set.
Use defaults if RUNKS is set for kickstart installations
-rw-r--r--ChangeLog5
-rw-r--r--loader2/linuxrc.s39065
2 files changed, 43 insertions, 27 deletions
diff --git a/ChangeLog b/ChangeLog
index d5aabcff3..a57522336 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-08 Karsten Hopp <karsten@redhat.com>
+ * loader2/linuxrc.s390: Don't ask for input if PORTNAME or CTCPROT
+ are already set. Use defaults if RUNKS is set for kickstart
+ installations
+
2004-11-07 Jeremy Katz <katzj@redhat.com>
* anaconda.spec: Bump version.
diff --git a/loader2/linuxrc.s390 b/loader2/linuxrc.s390
index 4e457ba2e..d552a1c9c 100644
--- a/loader2/linuxrc.s390
+++ b/loader2/linuxrc.s390
@@ -256,11 +256,16 @@ if [ "$NETTYPE" = "qeth" ] || [ "$NETTYPE" = "lcs" ]; then
echo $"Enter your default gateway:"
read GATEWAY
done
- if [ ":$NETTYPE" = ":lcs" ]; then
- echo $"Enter the relative port number of your LCS device"
- echo $"(required for OSA-Express ATM cards only):"
- read PORTNAME
- fi
+ if [ ":$NETTYPE" = ":lcs" ]; then
+ if [ -n "$RUNKS" -a -z "$PORTNAME" ]; then
+ PORTNAME=0
+ fi
+ while [ -z "$PORTNAME" ]; do
+ echo $"Enter the relative port number of your LCS device"
+ echo $"(required for OSA-Express ATM cards only):"
+ read PORTNAME
+ done
+ fi
else # ctc0, iucv0
if [ -z "$NETMASK" ]; then
# If the user did not supply netmask, we add the right one.
@@ -276,29 +281,35 @@ else # ctc0, iucv0
if [ -z "$MTU" ]; then
MTU="1500"
fi
- validprot=0
- while [ "$validprot" = "0" ]; do
- echo $"Select which protocol should be used for the CTC interface"
- echo $"0 for compatibility with p.e. VM TCP service machine (default)"
- echo $"1 for enhanced package checking for Linux peers"
- echo $"3 for compatibility with OS/390 or z/OS peers"
- read CTCPROT
- case "x$CTCPROT" in
- x|x0)
- validprot=1
- unset CTCPROT
- ;;
- x1|x3)
+ if [ -z "$RUNKS" ]; then
+ if [ -n "$CTCPROT" ]; then
validprot=1
- ;;
- x2)
- echo $"CTC tty's are not usable for this installation"
- ;;
- *)
- echo $"Invalid selection"
- ;;
- esac
- done
+ else
+ validprot=0
+ fi
+ while [ "$validprot" = "0" ]; do
+ echo $"Select which protocol should be used for the CTC interface"
+ echo $"0 for compatibility with p.e. VM TCP service machine (default)"
+ echo $"1 for enhanced package checking for Linux peers"
+ echo $"3 for compatibility with OS/390 or z/OS peers"
+ read CTCPROT
+ case "x$CTCPROT" in
+ x|x0)
+ validprot=1
+ unset CTCPROT
+ ;;
+ x1|x3)
+ validprot=1
+ ;;
+ x2)
+ echo $"CTC tty's are not usable for this installation"
+ ;;
+ *)
+ echo $"Invalid selection"
+ ;;
+ esac
+ done
+ fi
fi
if [ ":$NETTYPE" = ":iucv" ]; then
while [ -z "$PEERID" ]; do