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 "*********************"