This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cmd:choose [2012/04/28 22:36] mcb30 |
cmd:choose [2014/01/23 02:37] mcb30 |
||
---|---|---|---|
Line 31: | Line 31: | ||
Choose an item from a menu and store the result in the specified [[:settings|setting]], defaulting to the specified item after the specified timeout (in milliseconds). If no timeout is explicitly specified, or if a zero timeout is specified, then iPXE will wait indefinitely. | Choose an item from a menu and store the result in the specified [[:settings|setting]], defaulting to the specified item after the specified timeout (in milliseconds). If no timeout is explicitly specified, or if a zero timeout is specified, then iPXE will wait indefinitely. | ||
- | {{ :screenshots:menu.png?360x200 |A sample menu}} | + | {{ :screenshots:menu_graphic.png?400x300 |A sample menu}} |
If no default item is explicitly specified, then the menu's pre-existing default item (if any) will be used. If no menu is specified, the default (unnamed) menu will be used. The menu will be automatically deleted unless the ''%%--keep%%'' option is specified. | If no default item is explicitly specified, then the menu's pre-existing default item (if any) will be used. If no menu is specified, the default (unnamed) menu will be used. The menu will be automatically deleted unless the ''%%--keep%%'' option is specified. | ||
Line 53: | Line 53: | ||
choose os || goto cancelled | choose os || goto cancelled | ||
- | The ''--default'' option for the ''choose'' command overrides any default item specified using the ''[[:cmd:item]]'' command. | + | The ''%%--default%%'' option for the ''choose'' command overrides any default item specified using the ''[[:cmd:item]]'' command. |
You can use any valid setting name, including a scope and type. For example: | You can use any valid setting name, including a scope and type. For example: | ||
Line 61: | Line 61: | ||
item 8.8.8.8 Google public DNS | item 8.8.8.8 Google public DNS | ||
choose dns:ipv4 | choose dns:ipv4 | ||
+ | |||
+ | You can add a background picture to enhance the appearance of your menu using the ''[[:cmd:console]]'' command. | ||