This repository has been archived by the owner on Dec 17, 2020. It is now read-only.
/
update.sh
150 lines (123 loc) · 5.2 KB
/
update.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
clear
echo "$(tput setaf 1)01010100 01110010 01101001 01010000 01101001 00110010 00101110 00110000"
echo "$(tput setaf 2) _______ _ _____ _"
echo " |__ __| (_)| __ \\ (_) "
echo " | | _ __ _ | |__) | _ "
echo " | || '__|| || ___/ | | "
echo " | || | | || | | | "
echo " |_||_| |_||_| |_| "
echo
echo "$(tput setaf 1)01010100 01110010 01101001 01010000 01101001 00110010 00101110 00110000"
echo
echo
echo "$(tput setaf 2)Hi!"
echo "This is the TriPi updater script."
echo
echo "I am going to install updates to your TriPi environment."
echo
echo "This could potentially break things. If you have any issues, consult tripi.junaos.com or submit an issue to github."
echo "Not all updates are the same, so check the README.md file to find out if this is a stable release!"
echo
echo "!!!!WARNING!!!! This Update is replacing RETROARCH.CFG, which means you may need to reconfigure any custom settings after this is done!"
echo
echo "I will begin in 20 seconds..."
sleep 20
cd /home/pi/TriPi-Updater
clear
echo "$(tput setaf 1)01010100 01110010 01101001 01010000 01101001 00110010 00101110 00110000"
echo "$(tput setaf 2) _______ _ _____ _"
echo " |__ __| (_)| __ \\ (_) "
echo " | | _ __ _ | |__) | _ "
echo " | || '__|| || ___/ | | "
echo " | || | | || | | | "
echo " |_||_| |_||_| |_| "
echo
echo "$(tput setaf 1)01010100 01110010 01101001 01010000 01101001 00110010 00101110 00110000"
echo
echo
echo "$(tput setaf 2)Checking xboxdrv... $(tput sgr 0)"
sleep 2
apt-get -y install xboxdrv
adduser pi root
clear
echo "$(tput setaf 1)01010100 01110010 01101001 01010000 01101001 00110010 00101110 00110000"
echo "$(tput setaf 2) _______ _ _____ _"
echo " |__ __| (_)| __ \\ (_) "
echo " | | _ __ _ | |__) | _ "
echo " | || '__|| || ___/ | | "
echo " | || | | || | | | "
echo " |_||_| |_||_| |_| "
echo
echo "$(tput setaf 1)01010100 01110010 01101001 01010000 01101001 00110010 00101110 00110000"
echo
echo
echo "$(tput setaf 2)Updating System...$(tput sgr 0)"
sleep 2
rm -rf /home/pi/RetroPie/roms/TriPi
mkdir /home/pi/RetroPie/roms/TriPi
#mkdir /etc/emulationstation/themes/simple-dark/TriPi
cd /home/pi/TriPi-Updater/
cp Manual\ Update.sh /home/pi/RetroPie/roms/TriPi
cp -r TriPi /opt/retropie/supplementary/splashscreen/
cd /home/pi/TriPi-Updater/System
cp config.txt /boot/
cp inittab /etc/
cp rc.local /etc/
cp emu.sh /etc/profile.d/
cp .bashrc /home/pi
cp splashscreen.list /etc/
cp asplashscreen /etc/init.d/
cp es_systems.cfg /etc/emulationstation
#cp retroarch.cfg /opt/retropie/configs/all/
cp killmc.sh /home/pi/
cd /home/pi/TriPi-Updater/Ports/
cp kodi.sh /home/pi/RetroPie/roms/ports
cp Minecraft\ TriPi\ Port.sh /home/pi/RetroPie/roms/ports
cd /home/pi/TriPi-Updater/TriPi-Menu/
cp theme.xml /etc/emulationstation/themes/simple-dark/TriPi
cp -r art /etc/emulationstation/themes/simple-dark/TriPi
cd /home/pi/TriPi-Updater/Limelight/
cp Install\ Limelight.sh /home/pi/RetroPie/roms/TriPi
sleep 5
clear
echo "$(tput setaf 1)01010100 01110010 01101001 01010000 01101001 00110010 00101110 00110000"
echo "$(tput setaf 2) _______ _ _____ _"
echo " |__ __| (_)| __ \\ (_) "
echo " | | _ __ _ | |__) | _ "
echo " | || '__|| || ___/ | | "
echo " | || | | || | | | "
echo " |_||_| |_||_| |_| "
echo
echo "$(tput setaf 1)01010100 01110010 01101001 01010000 01101001 00110010 00101110 00110000"
echo
echo
echo "$(tput setaf 2)Setting permissions for new files...$(tput sgr 0)"
sleep 2
chmod +x /home/pi/RetroPie/roms/TriPi/Install\ Limelight.sh
chmod +x /home/pi/killmc.sh
chmod +x /home/pi/RetroPie/roms/ports/kodi.sh
chmod +x /home/pi/RetroPie/roms/ports/Minecraft\ TriPi\ Port.sh
chmod +x /home/pi/RetroPie/roms/TriPi/Manual\ Update.sh
chmod +x /etc/profile.d/emu.sh
chmod +x /etc/rc.local
chmod +x /etc/emulationstation/es_systems.cfg
chmod +x /opt/retropie/configs/all/retroarch.cfg
chmod a+x /etc/init.d/asplashscreen
insserv /etc/init.d/asplashscreen
sudo chown -R pi:pi /home/pi/RetroPie/roms/
sleep 5
clear
echo "$(tput setaf 1)01010100 01110010 01101001 01010000 01101001 00110010 00101110 00110000"
echo "$(tput setaf 2) _______ _ _____ _"
echo " |__ __| (_)| __ \\ (_) "
echo " | | _ __ _ | |__) | _ "
echo " | || '__|| || ___/ | | "
echo " | || | | || | | | "
echo " |_||_| |_||_| |_| "
echo
echo "$(tput setaf 1)01010100 01110010 01101001 01010000 01101001 00110010 00101110 00110000"
echo
echo
echo "$(tput setaf 2)Done!"
echo "I will now reboot. ENJOY! -Pancakeykakes$(tput sgr 0)"
sudo reboot