Bob Mottram 7 anni fa
parent
commit
a6f960d580
2 ha cambiato i file con 32 aggiunte e 0 eliminazioni
  1. 16
    0
      src/freedombone-backup-local
  2. 16
    0
      src/freedombone-restore-local

+ 16
- 0
src/freedombone-backup-local Vedi File

@@ -42,6 +42,22 @@ if [ -f /usr/bin/${PROJECT_NAME} ]; then
42 42
     PROJECT_INSTALL_DIR=/usr/bin
43 43
 fi
44 44
 
45
+function please_wait {
46
+        local str width height length
47
+
48
+        width=$(tput cols)
49
+        height=$(tput lines)
50
+        str="Standby to backup to USB"
51
+        length=${#str}
52
+        clear
53
+        tput cup $((height / 2)) $(((width / 2) - (length / 2)))
54
+        echo "$str"
55
+        tput cup $((height * 3 / 5)) $(((width / 2)))
56
+        echo -n ''
57
+}
58
+
59
+please_wait
60
+
45 61
 source $PROJECT_INSTALL_DIR/${PROJECT_NAME}-vars
46 62
 
47 63
 # include utils which allow function_check and drive mount

+ 16
- 0
src/freedombone-restore-local Vedi File

@@ -44,6 +44,22 @@ if [ -f /usr/bin/${PROJECT_NAME} ]; then
44 44
     PROJECT_INSTALL_DIR=/usr/bin
45 45
 fi
46 46
 
47
+function please_wait {
48
+        local str width height length
49
+
50
+        width=$(tput cols)
51
+        height=$(tput lines)
52
+        str="Standby to restore from USB"
53
+        length=${#str}
54
+        clear
55
+        tput cup $((height / 2)) $(((width / 2) - (length / 2)))
56
+        echo "$str"
57
+        tput cup $((height * 3 / 5)) $(((width / 2)))
58
+        echo -n ''
59
+}
60
+
61
+please_wait
62
+
47 63
 source $PROJECT_INSTALL_DIR/${PROJECT_NAME}-vars
48 64
 
49 65
 # include utils which allow function_check, go and drive mount