forked from asche76/runcommand
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·36 lines (27 loc) · 1.36 KB
/
setup.sh
File metadata and controls
executable file
·36 lines (27 loc) · 1.36 KB
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
echo "installing files"
cp opt/retropie/configs/all/autostart.sh /opt/retropie/configs/all/
cp home/pi/RetroPie/retropiemenu/rotate\ screen.sh /home/pi/RetroPie/retropiemenu
cp home/pi/rgb_default_config.sh /home/pi/
sudo cp usr/local/bin/mme4crt /usr/local/bin/
sudo rm /usr/local/bin/pikeyd165 > /dev/null
sudo cp usr/local/bin/pikeyd165 /usr/local/bin/
sudo cp etc/pikeyd165.conf /etc/
cp opt/retropie/configs/all/vertical.txt /opt/retropie/configs/all/
cp opt/retropie/configs/all/runcommand-onstart.sh /opt/retropie/configs/all/
cp /opt/retropie/configs/all/runcommand-onstart.sh /opt/retropie/configs/all/runcommand-onstart.sh_asche
cp opt/retropie/configs/all/arcade_res_table.txt /opt/retropie/configs/all/
cp opt/retropie/configs/all/runcommand-onend.sh /opt/retropie/configs/all/
sudo cp etc/emulationstation/themes.sh /etc/emulationstation/
cp home/pi/RetroPie-Setup/scriptmodules/supplementary/esthemes.sh /home/pi/RetroPie-Setup/scriptmodules/supplementary/
cp home/pi/RetroPie/retropiemenu/Update\ RetroPieRGB.sh /home/pi/RetroPie/retropiemenu/
model=$(cat /proc/device-tree/model | cut -c1-14)
echo $model
if [ "$model" == "Raspberry Pi 4" ]; then
echo "found pi4"
sudo cp boot/config.txt_rpi4 /boot/config.txt
else
echo "found pi3"
sudo cp boot/config.txt_rpi3 /boot/config.txt
fi
sudo chmod a+x /etc/emulationstation/themes.sh
echo "done. Please reboot."