summaryrefslogtreecommitdiffstats
path: root/defaultenv/defaultenv-2-menu/menu/mainmenu
diff options
context:
space:
mode:
Diffstat (limited to 'defaultenv/defaultenv-2-menu/menu/mainmenu')
-rw-r--r--defaultenv/defaultenv-2-menu/menu/mainmenu23
1 files changed, 23 insertions, 0 deletions
diff --git a/defaultenv/defaultenv-2-menu/menu/mainmenu b/defaultenv/defaultenv-2-menu/menu/mainmenu
new file mode 100644
index 0000000..f10f67a
--- /dev/null
+++ b/defaultenv/defaultenv-2-menu/menu/mainmenu
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+savepath=$PATH
+export menupath=$PATH:/env/menu
+
+. /env/data/ansi-colors
+
+while true; do
+ export PATH=${menupath}
+
+ echo $PATH
+
+ menu -a -m boot -d "${CYAN}Welcome to Barebox${NC}"
+
+ boot-entries-collect
+
+ menu -e -a -m boot -c "settings" -d "Settings"
+ menu -e -a -m boot -c 'PATH=$savepath; echo "enter exit to return to menu"; sh' -d "${DARK_YELLOW}Shell${NC}"
+ menu -e -a -m boot -c reset -d "${RED}Reset${NC}"
+
+ menu -s -m boot
+ menu -r -m boot
+done