diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-10-28 10:11:07 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-10-28 10:11:07 (EDT) |
commit | fae62ed619d42ceea491d3be9770bd5f127c92f1 (patch) | |
tree | 5e213c4e0da652685d833686d674ddead5a3a446 /src | |
parent | f7b510f4474af025013aec29b87048ac9f5869ac (diff) | |
download | firman.sh-fae62ed619d42ceea491d3be9770bd5f127c92f1.zip firman.sh-fae62ed619d42ceea491d3be9770bd5f127c92f1.tar.gz firman.sh-fae62ed619d42ceea491d3be9770bd5f127c92f1.tar.bz2 |
main(): Initialize and finalize things
Diffstat (limited to 'src')
-rw-r--r-- | src/main.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.sh b/src/main.sh index aa07e51..c0a363c 100644 --- a/src/main.sh +++ b/src/main.sh @@ -77,6 +77,8 @@ main() if ! init_ui "${ui}"; then exit 1 fi + srand $(expr ${$} + $(date '+%s')) + temp_init while :; do case "$(show_menu 'Firmware Manager' 'Update firmware' \ @@ -92,5 +94,8 @@ main() printf '\n' done + temp_fini + exit_ui + return 0 } |