2013-10-22, 11:11
I am working with iPXE. My question is how can I make user input in iPXE like in "login"?
My goal is to have user input data to be stored in database, so that when I install remotely, I have the data for reports.
I have created script using "echo" and "read" but these don't work.
Here my sample script:
Thank you very much.
Regards,
Hermie
My goal is to have user input data to be stored in database, so that when I install remotely, I have the data for reports.
I have created script using "echo" and "read" but these don't work.
Here my sample script:
Code:
header ("Content-type: text/plain");
echo "#!ipxe\n";
echo "echo -n Client Name: ";
echo "read hotelname";
echo "echo -n Contact Person: ";
echo "read contact";
echo "echo -n Phone: ";
echo "read phone";
echo "echo -n Address:";
echo "read address";
echo "echo -n City: ";
echo "read city";
echo "echo -n Country: ";
echo "read country";
$hotel = "\${hotelname}";
$contact = "\${contact}";
$phone = "\${phone}";
$address = "\${address}";
$city = "\${city}";
$country = "\${country}";
Thank you very much.
Regards,
Hermie