From fae62ed619d42ceea491d3be9770bd5f127c92f1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 28 Oct 2015 10:11:07 -0400 Subject: main(): Initialize and finalize things --- (limited to 'src') 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 } -- cgit v0.9.1