[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: simple pre script for user input
- From: tony chamberlain lemko com
- To: "Discussion list about Kickstart" <kickstart-list redhat com>
- Subject: Re: simple pre script for user input
- Date: Thu, 20 Nov 2008 20:23:55 +0000
I'm betting the RPM program does not have its stdin from your terminal,
so it is waiting on the read for the IP, which, even though you enter
something, does not get read since your tty is not its stdin.
-----Original Message-----
From: Glenn Bailey [mailto:gbailey terremark com]
Sent: Wednesday, November 19, 2008 07:12 PM
To: kickstart-list redhat com
Subject: simple pre script for user input
Playing around with a %pre script for user input, and while this works fine
in a normal shell, after I enter an IP it just hangs there and I have to hit
alt-f2 and kill the process before it moves forward .. Anyway ideas? Like I
said this works fine in a normal shell:
%pre
chvt 3
clear
CONSOLEIP=""
YES=n
while [ $YES != "y" ]
do
echo -n "Enter the console IP: "
read CONSOLEIP
echo "You entered: $CONSOLEIP"
echo -n "Is this correct? [y/n]: "
read YES
done
echo $CONSOLEIP > /tmp/CONSOLEIP
chvt 1
%end
Glenn E. Bailey III, Operational Support Services gbailey terremark com
972-827-4292
terremark worldwide
222 W Las Colinas Blvd Ste 350E
Irving, TX 75039
_______________________________________________
Kickstart-list mailing list
Kickstart-list redhat com
https://www.redhat.com/mailman/listinfo/kickstart-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]