LibreELEC 10.0.2 install of Argon ONE V2 software?

I installed LibreELEC 10.0.2 on Raspberry Pi 4 with an Argon ONE v2 case. I want to install the Argon ONE power button / fan control software.
I execute the script the manual refers to (for Raspbian, which LibreELEC isn’t but is based on)

curl https://download.argon40.com/argon1.sh | bash

and get

curl https://download.argon40.com/argon1.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0bash: syntax error: unexpected "(" (expecting "fi")
 75 21361   75 15997    0     0   6883      0  0:00:03  0:00:02  0:00:01  6886
curl: (23) Failure writing output to destination

Is there some other way of installing this for LibreELEC-Rasp4 ?

That kind of looks like the curl transfer failed, I tried it (don’t have a argon1 case, so I simply transfered the file over, and I get the following output:

curl https://download.argon40.com/argon1.sh > argon1.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21361  100 21361    0     0  22772      0 --:--:-- --:--:-- --:--:-- 22748

Looks to me like the curl command failed near the end, then bash attempted to execute the code.

Are you out of space?

I have this same issue on an M2 case… lots of space on the 120GB M2 SSD

Nope, not out of space. Found from web trawling that for Libreelec the script is apparently

https://download.argon40.com/argonone-setup-libreelec.sh

which does install properly, not that what it installs will run, but that’s a separate issue. If only Argon40 would document it.
Thanks

Just tried that, but it evidently no longer exists, returning a 404 error.

Must be a typo. Just tried this and it exists
https://download.argon40.com/argonone-setup-libreelec.sh

That worked! Thanks!

Thanks, this worked for me as well running this…

curl https://download.argon40.com/argonone-setup-libreelec.sh| bash

I had to take two extra steps to make the setup from

https://download.argon40.com/argonone-setup-libreelec.sh

work with LibreELEC 10.0.2: Two addons have to be installed and an environment file has to be included.

To install the two addons Raspberry Pi Tools and System Tools go to

Add-ons -> Install from repository -> LibreELEC Add-ons -> Program add-ons

and select the two addons.

And /etc/environment has to be included in the systemd startup script /storage/.config/system.d/argononed.service in the section [Service]:

EnvironmentFile=/etc/environment

otherwise you will get an error:

Dec 18 15:30:13 LibreELEC python[1139]: Traceback (most recent call last):
Dec 18 15:30:13 LibreELEC python[1139]:   File "/storage/.config/argononed.py", line 4, in <module>
Dec 18 15:30:13 LibreELEC python[1139]:     import smbus
Dec 18 15:30:13 LibreELEC python[1139]: ImportError: libi2c.so.0: cannot open shared object file: No such file or directory

To patch the installation script use:

--- argonone-setup-libreelec.sh.orig    2022-12-18 00:44:49.948055608 +0100
+++ argonone-setup-libreelec.sh 2022-12-18 15:17:21.202675918 +0100
@@ -215,6 +215,7 @@
 echo "Restart=always" >> $daemonfanservice
 echo "RemainAfterExit=true" >> $daemonfanservice
 echo "ExecStart=/usr/bin/python $powerbuttonscript" >> $daemonfanservice
+echo "EnvironmentFile=/etc/environment" >> $daemonfanservice
 echo '[Install]' >> $daemonfanservice
 echo "WantedBy=multi-user.target" >> $daemonfanservice