ES-generic-shutdown icon indicating copy to clipboard operation
ES-generic-shutdown copied to clipboard

Automation of the installation procedure

Open neo954 opened this issue 7 years ago • 3 comments

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

neo954 avatar Sep 23 '18 14:09 neo954

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 avatar Dec 01 '18 17:12 crcerror

@crcerror Did this get implemented? Also, do you envisage the script being compatible with the RP4 and new OS?

robertybob avatar Jun 24 '19 14:06 robertybob

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

crcerror avatar Jun 24 '19 21:06 crcerror