diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-10-27 14:41:31 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-10-27 14:41:31 (EDT) |
commit | 6d77eafb436d4db8f7a9f8d1db46df46d7800fd1 (patch) | |
tree | 7e1ee3e1856b059e5c0e9498554885eb67c619f2 /src | |
parent | a08e15af13b9cc43cbbacc3e25bbaa75d1e52093 (diff) | |
download | firman.sh-6d77eafb436d4db8f7a9f8d1db46df46d7800fd1.zip firman.sh-6d77eafb436d4db8f7a9f8d1db46df46d7800fd1.tar.gz firman.sh-6d77eafb436d4db8f7a9f8d1db46df46d7800fd1.tar.bz2 |
main(): Use show_menu()
Diffstat (limited to 'src')
-rw-r--r-- | src/main.sh | 15 |
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 } |