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

Re: input and variables in kickstart scripts?



Andrew Leahy wrote:
> Is there a way to prompt for user input, say, as a part of the %pre section
> of ks.cfg?  I'd like to make a boot floppy that prompts just for a
> hostname/IP number and then uses that information to configure the network
> device.

You can do something like this:

%pre
chvt 3
exec < /dev/tty3 > /dev/tty3
clear
echo -n "Please enter hostname: "
read myHost
echo -n "Please enter IP: "
read myIP
do something with user input
exec 5>&-
chvt 1


Ciao,
 Daniel
\





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