please wait sign

This commit is contained in:
Bob Mottram 2017-06-05 19:59:04 +01:00
parent ad523641af
commit 84f33bc946
1 changed files with 15 additions and 0 deletions

View File

@ -33,6 +33,20 @@ PROJECT_NAME='freedombone'
export TEXTDOMAIN=${PROJECT_NAME}-controlpanel
export TEXTDOMAINDIR="/usr/share/locale"
function please_wait {
local str width height length
width=$(tput cols)
height=$(tput lines)
str="Please wait"
length=${#str}
clear
tput cup $((height / 2)) $(((width / 2) - (length / 2)))
echo "$str"
}
please_wait
UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*
for f in $UTILS_FILES
do
@ -2110,6 +2124,7 @@ function menu_top_level {
1) exit 1;;
255) exit 1;;
esac
please_wait
case $(cat $data) in
1) show_about;;
2) view_or_change_passwords;;