From 6979175767a916df69309f002c2ce1f80829d2c1 Mon Sep 17 00:00:00 2001 From: okunze Date: Fri, 29 Dec 2023 21:02:42 +0000 Subject: [PATCH] Automated Change by GitHub Action --- source/argon1.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/argon1.sh b/source/argon1.sh index bcfc9a1..2f75233 100644 --- a/source/argon1.sh +++ b/source/argon1.sh @@ -225,6 +225,8 @@ basename="argonone" daemonname=$basename"d" irconfigscript=$INSTALLATIONFOLDER/${basename}-ir fanconfigscript=$INSTALLATIONFOLDER/${basename}-fanconfig.sh +eepromrpiscript="/usr/bin/rpi-eeprom-config" +eepromconfigscript=$INSTALLATIONFOLDER/${basename}-eepromconfig.py powerbuttonscript=$INSTALLATIONFOLDER/$daemonname.py unitconfigfile=/etc/argonunits.conf daemonconfigfile=/etc/$daemonname.conf @@ -232,6 +234,14 @@ daemonfanservice=/lib/systemd/system/$daemonname.service daemonhddconfigfile=/etc/${daemonname}-hdd.conf + +if [ -f "$eepromrpiscript" ] +then + # EEPROM Config Script + sudo wget $ARGONDOWNLOADSERVER/scripts/argon-rpi-eeprom-config.py -O $eepromconfigscript --quiet + sudo chmod 755 $eepromconfigscript +fi + # Fan Config Script sudo wget $ARGONDOWNLOADSERVER/scripts/argonone-fanconfig.sh -O $fanconfigscript --quiet sudo chmod 755 $fanconfigscript @@ -572,6 +582,14 @@ else fi fi + +if [ -f "$eepromrpiscript" ] +then + # EEPROM Config Script + sudo $eepromconfigscript +fi + + echo "*********************" echo " $setupmode Completed " echo "*********************"