[ipxe-devel] Select menu item by typing in its name

Michael Brown mcb30 at ipxe.org
Wed Jan 22 16:32:00 UTC 2020


On 22/01/2020 16:17, Matteo Guglielmi wrote:
> I'm looking for a quick answer about ipxe.
> 
> Is it possible to setup ipxe similarly to syslinux's menu where I
> can simply type in the item name I need instead of selecting it in
> the nemu?
> 
> I'm not talking about keyboard shortcuts, but just a plain complete
> item name.

You can use the "read" command to read an arbitrary string from the 
user, then try using it as a "goto" target.

   https://ipxe.org/cmd/read
   https://ipxe.org/cmd/goto

Something like:

   echo -n Choose item:
   read item
   goto ${item} || goto item_not_found

Michael



More information about the ipxe-devel mailing list