From ca8edb3b65ae2be88278efac6ca7da1de964be88 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 23 Sep 2013 00:41:22 +0200 Subject: add menutree command Creating menus from the shell using the regular 'menu' command is rather complicated. This adds a 'menutree' command which creates a menu from a directory structure. In the directory structure each directory corresponds to a single menu entry. The directory contains the following files: title - A file containing the title of the entry as shown in the menu box - If present, the entry is a 'bool' entry. The file contains a variable name from which the current state of the bool is taken from and saved to. action - if present this file contains a shell script which is executed when when the entry is selected. If neither 'box' or 'action' are present this entry is considered a submenu containing more entries. Signed-off-by: Sascha Hauer --- commands/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'commands/Makefile') diff --git a/commands/Makefile b/commands/Makefile index 91ec0e9fa9..e463031455 100644 --- a/commands/Makefile +++ b/commands/Makefile @@ -94,3 +94,4 @@ obj-$(CONFIG_CMD_DETECT) += detect.o obj-$(CONFIG_CMD_BOOT) += boot.o obj-$(CONFIG_CMD_DEVINFO) += devinfo.o obj-$(CONFIG_CMD_READF) += readf.o +obj-$(CONFIG_CMD_MENUTREE) += menutree.o -- cgit v1.2.3