Automation of the installation procedure
This is a piece of simple shell script I wrote to automate the installation procedure. And it helps me to avoid mistake during the installation.
It is great if it can be added in the document somewhere, or shipped as an installation script.
apt-get install -y raspi-gpio
mkdir -p /home/pi/RetroPie/scripts
wget https://raw.githubusercontent.com/crcerror/ES-generic-shutdown/master/multi_switch.sh -O /home/pi/RetroPie/scripts/multi_switch.sh
chown -R pi:pi /home/pi/RetroPie/scripts
chmod 0755 /home/pi/RetroPie/scripts /home/pi/RetroPie/scripts/multi_switch.sh
sed -i -e '/\/home\/pi\/RetroPie\/scripts\/multi_switch.sh/ d' -e '1i /home/pi/RetroPie/scripts/multi_switch.sh --nespi+ &' /opt/retropie/configs/all/autostart.sh
wget https://raw.githubusercontent.com/crcerror/ES-generic-shutdown/master/shutdown_fan -O /lib/systemd/system-shutdown/shutdown_fan
chown -R root:root /lib/systemd/system-shutdown/shutdown_fan
chmod 0755 /lib/systemd/system-shutdown/shutdown_fan
I'll take this small script to create a kind of installere. Should be easy to do with some added command line options ;) Thanks for your work
@crcerror Did this get implemented? Also, do you envisage the script being compatible with the RP4 and new OS?
Yes I created a small script yesterday. It's pretty a 1:1 copy of @neo954 Pi4 and new OS? Never tested! So I can't say anything about