|
@@ -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
|