diff --git a/src/freedombone-backup-local b/src/freedombone-backup-local index fee4617c..21dc5d33 100755 --- a/src/freedombone-backup-local +++ b/src/freedombone-backup-local @@ -42,6 +42,22 @@ if [ -f /usr/bin/${PROJECT_NAME} ]; then PROJECT_INSTALL_DIR=/usr/bin fi +function please_wait { + local str width height length + + width=$(tput cols) + height=$(tput lines) + str="Standby to backup to USB" + length=${#str} + clear + tput cup $((height / 2)) $(((width / 2) - (length / 2))) + echo "$str" + tput cup $((height * 3 / 5)) $(((width / 2))) + echo -n '' +} + +please_wait + source $PROJECT_INSTALL_DIR/${PROJECT_NAME}-vars # include utils which allow function_check and drive mount diff --git a/src/freedombone-restore-local b/src/freedombone-restore-local index 243bebeb..d6748cfd 100755 --- a/src/freedombone-restore-local +++ b/src/freedombone-restore-local @@ -44,6 +44,22 @@ if [ -f /usr/bin/${PROJECT_NAME} ]; then PROJECT_INSTALL_DIR=/usr/bin fi +function please_wait { + local str width height length + + width=$(tput cols) + height=$(tput lines) + str="Standby to restore from USB" + length=${#str} + clear + tput cup $((height / 2)) $(((width / 2) - (length / 2))) + echo "$str" + tput cup $((height * 3 / 5)) $(((width / 2))) + echo -n '' +} + +please_wait + source $PROJECT_INSTALL_DIR/${PROJECT_NAME}-vars # include utils which allow function_check, go and drive mount