-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathPocketDESKlite.sh
executable file
·50 lines (41 loc) · 1.77 KB
/
PocketDESKlite.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# Check if user is root
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
MYDIR=`dirname $0`
source "$MYDIR/Scripts/spinner.sh"
# Clear the screen
reset
echo "+---------------------------------------------------------------------+"
echo "| Installing stuff for you |"
echo "| Go make yorself a cup of coffee |"
echo "| |"
echo "| PocketDESKlite was brought to you by AllGray! |"
echo "+---------------------------------------------------------------------+"
# install dependencies
start_spinner [Installing_dependencies]
$MYDIR/Scriptslite/dependencieslite.sh &> /dev/null
stop_spinner $?
# Working Touchscreen
start_spinner [Fixing_touchscreen]
$MYDIR/Scriptslite/touchscreenlite.sh &> /dev/null
stop_spinner $?
# Working Keyboard
start_spinner [Fixing_keyboard]
$MYDIR/Scriptslite/keyboardlite.sh &> /dev/null
stop_spinner $?
# Get a battery indicator
start_spinner [Installing_battery_indicator]
$MYDIR/Scriptslite/batterylite.sh &> /dev/null
stop_spinner $?
# Finishing up
echo "+---------------------------------------------------------------------+"
echo "| Congratulation! |"
echo "| Your install is done! |"
echo "| |"
echo "| Reboot and enjoy |"
echo "| |"
echo "| PocketDESKlite was brought to you by AllGray! |"
echo "+---------------------------------------------------------------------+"