summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main.sh b/src/main.sh
index 4c9f849..e11fa79 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -75,5 +75,18 @@ main()
if ! init_ui "${ui}"; then
exit 1
fi
- info 'Hello, world!'
+
+ while :; do
+ case "$(show_menu 'Firmware Manager' 'Update firmware' \
+ 'Exit')" in
+ 0)
+ info 'Hello, world!'
+ ;;
+ 1)
+ info 'Exiting'
+ exit 0
+ ;;
+ esac
+ printf '\n'
+ done
}