The SPINPID2.SH script returns syntax errors!

collector

Dabbler
Joined
Nov 10, 2022
Messages
20
Hello, I adapted this script which was developed by "Glorious1" for Debian/Ubuntu, the CPU part works very well, but the hard disk part returns syntax errors, even if the hard disk and temperature detection works.

I replaced the "camcontrol" tool by the "inxi" tool which does exactly the same job

spinpid2.sh : https://paste2.org/VG33FbD5
spinpid2.config : https://paste2.org/OWCchWmy

ksnip_20221212-231943.png


After some research, I found out that someone else also adapted the script on Debian, replacing "camcontrol" with "lsblk" but he gets the same syntax errors on Debian!

https://gist.github.com/havardAasen/a46c416b61279974938e3668668e9d01

Which means, that these errors are not due to my modifications!

The part of the "spinpid2.sh" code that seems to have problems is this one:

ksnip_20221213-111344.png


I would very much like the developer of this script or someone to help finish the Debian/Ubuntu port of this script, there is not much left except for the syntax correction on the lines above.

This script is very extremely important for my configuration (X11SSH-F)!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Perhaps you want to look at this:
 

collector

Dabbler
Joined
Nov 10, 2022
Messages
20
Perhaps you want to look at this:
Thanks, but unfortunately, this script doesn't do the same thing as SPINPID, which monitors the temperature of the hard disks and the CPU, and then configures the fans to the right speed in real time...

We just need to find a solution to these syntax problems, and the script will be fully operational on Debian.

I really hope someone can find a solution to fix this script!
 
Top