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 "