Re: input and variables in kickstart scripts?

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

 



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
\





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux