]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[menu] Add menu commands
authorMichael Brown <mcb30@ipxe.org>
Wed, 28 Mar 2012 23:05:22 +0000 (00:05 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 29 Mar 2012 13:02:02 +0000 (14:02 +0100)
commit3425726cf33c2af84c9737a2501cd39517e42cdb
treeb08cd61419fad6e16de7e9329d91540e99a6a980
parent493f1945314cf74c10ffb77b96667b9f725bc5c4
[menu] Add menu commands

Allow iPXE scripts to create menus.  For example:

    #!ipxe

    menu iSCSI boot demonstration
    item install         Install Fedora to ${root-path}
    item --default boot  Boot from ${root-path}
    item shell           Enter iPXE shell
    item exit            Exit to BIOS
    choose label && goto ${label}

    :boot
    sanboot ${root-path}

    :install
    sanhook ${root-path}
    chain http://${next-server}/fedora.ipxe

    :shell
    shell

    :exit

Inspired-by: Robin Smidsrød <robin@smidsrod.no>
Tested-by: Robin Smidsrød <robin@smidsrod.no>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/config.c
src/config/general.h
src/core/parseopt.c
src/hci/commands/menu_cmd.c [new file with mode: 0644]
src/include/ipxe/errfile.h
src/include/ipxe/features.h
src/include/ipxe/parseopt.h