From 7e1e9a7b366ea245928b0257f18583da06dd6e9b Mon Sep 17 00:00:00 2001 From: okunze Date: Fri, 22 Mar 2024 21:05:10 +0000 Subject: [PATCH] Automated Change by GitHub Action --- source/argon1.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/source/argon1.sh b/source/argon1.sh index 0257bbb..5b1baa3 100644 --- a/source/argon1.sh +++ b/source/argon1.sh @@ -647,16 +647,21 @@ else fi fi - -if [ -f "$eepromrpiscript" ] +if [ "$CHECKPLATFORM" = "Raspbian" ] then - sudo rpi-eeprom-update - sudo apt-get update && sudo apt-get upgrade -y - # EEPROM Config Script - sudo $eepromconfigscript - set_maxusbcurrent + if [ -f "$eepromrpiscript" ] + then + sudo apt-get update && sudo apt-get upgrade -y + sudo rpi-eeprom-update + # EEPROM Config Script + sudo $eepromconfigscript + fi +else + echo "WARNING: EEPROM not updated. Please run this under Raspberry Pi OS" fi +set_maxusbcurrent + echo "*********************" echo " $setupmode Completed "