From 7ff78230e26e5ff5e49b8babff654255bce9fce1 Mon Sep 17 00:00:00 2001 From: okunze Date: Fri, 28 Jun 2024 21:04:37 +0000 Subject: [PATCH] Automated Change by GitHub Action --- source/argon1.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/argon1.sh b/source/argon1.sh index 73766f9..5f034f5 100644 --- a/source/argon1.sh +++ b/source/argon1.sh @@ -39,6 +39,8 @@ ARGONDOWNLOADSERVER=https://download.argon40.com INSTALLATIONFOLDER=/etc/argon +FLAGFILEV1=$INSTALLATIONFOLDER/flag_v1 + versioninfoscript=$INSTALLATIONFOLDER/argon-versioninfo.sh uninstallscript=$INSTALLATIONFOLDER/argon-uninstall.sh @@ -148,6 +150,7 @@ argon_check_pkg() { fi } + CHECKDEVICE="one" # Hardcoded for argonone # Check if has RTC # Todo for multiple OS @@ -311,7 +314,12 @@ sudo chmod 755 $versioninfoscript sudo wget $ARGONDOWNLOADSERVER/scripts/argonsysinfo.py -O $INSTALLATIONFOLDER/argonsysinfo.py --quiet -sudo wget $ARGONDOWNLOADSERVER/scripts/argonregister.py -O $INSTALLATIONFOLDER/argonregister.py --quiet +if [ -f "$FLAGFILEV1" ] +then + sudo wget $ARGONDOWNLOADSERVER/scripts/argonregister-v1.py -O $INSTALLATIONFOLDER/argonregister.py --quiet +else + sudo wget $ARGONDOWNLOADSERVER/scripts/argonregister.py -O $INSTALLATIONFOLDER/argonregister.py --quiet +fi sudo wget "$ARGONDOWNLOADSERVER/scripts/argonpowerbutton-${CHECKGPIOMODE}.py" -O $INSTALLATIONFOLDER/argonpowerbutton.py --quiet