-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathPocketDESK.sh
executable file
·73 lines (57 loc) · 2.18 KB
/
PocketDESK.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/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 "| PocketDESK was brought to you by AllGray! |"
echo "+---------------------------------------------------------------------+"
# install dependencies
start_spinner [Installing_dependencies]
$MYDIR/Scripts/dependencies.sh &> /dev/null
stop_spinner $?
# Install PocketHome
start_spinner [Installing_PocketHome]
$MYDIR/Scripts/pockethome.sh &> /dev/null
stop_spinner $?
# Working Touchscreen
start_spinner [Fixing_touchscreen]
$MYDIR/Scripts/touchscreen.sh &> /dev/null
stop_spinner $?
# Working Keyboard
start_spinner [Fixing_keyboard]
$MYDIR/Scripts/keyboard.sh &> /dev/null
stop_spinner $?
# Get a battery indicator
start_spinner [Installing_battery_indicator]
$MYDIR/Scripts/battery.sh &> /dev/null
stop_spinner $?
# Nicely named sessions
start_spinner [Correcting_names]
$MYDIR/Scripts/sessions.sh &> /dev/null
stop_spinner $?
# Setting Hostname
start_spinner [Changing_Hostname]
$MYDIR/Scripts/hostname.sh &> /dev/null
stop_spinner $?
# Wallpaper Change
start_spinner [Selling_out]
$MYDIR/Scripts/wallpaper.sh &> /dev/null
stop_spinner $?
# Finishing up
echo "+---------------------------------------------------------------------+"
echo "| Congratulation! |"
echo "| Your install is done! |"
echo "| |"
echo "| Reboot and enjoy |"
echo "| |"
echo "| PocketDESK was brought to you by AllGray! |"
echo "+---------------------------------------------------------------------+"