summaryrefslogtreecommitdiffstats
path: root/src/config/config.c
diff options
context:
space:
mode:
authorMichael Brown2012-03-29 01:05:22 +0200
committerMichael Brown2012-03-29 15:02:02 +0200
commit3425726cf33c2af84c9737a2501cd39517e42cdb (patch)
treeb08cd61419fad6e16de7e9329d91540e99a6a980 /src/config/config.c
parent[menu] Add menu user interface (diff)
downloadipxe-3425726cf33c2af84c9737a2501cd39517e42cdb.tar.gz
ipxe-3425726cf33c2af84c9737a2501cd39517e42cdb.tar.xz
ipxe-3425726cf33c2af84c9737a2501cd39517e42cdb.zip
[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>
Diffstat (limited to 'src/config/config.c')
-rw-r--r--src/config/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/config.c b/src/config/config.c
index 4b0bc371..bc3f7ed5 100644
--- a/src/config/config.c
+++ b/src/config/config.c
@@ -223,6 +223,9 @@ REQUIRE_OBJECT ( dhcp_cmd );
#ifdef SANBOOT_CMD
REQUIRE_OBJECT ( sanboot_cmd );
#endif
+#ifdef MENU_CMD
+REQUIRE_OBJECT ( menu_cmd );
+#endif
#ifdef LOGIN_CMD
REQUIRE_OBJECT ( login_cmd );
#endif