References to paths might differ.
I don't have a SCALE box to test, but on an Arch-based Linux distro, I get errors such as these:
Code:
get_hdd_temp.sh: line 47: /usr/local/sbin/smartctl: No such file or directory
sysctl: cannot stat /proc/sys/hw/ncpu: No such file or directory
=== CPU () ===
=== DRIVES ===
On Debian Linux, the full path is actually
/usr/sbin/smartctl
Since SCALE is Debian-based, it might differ slightly.
However, the script in general needs to be adopted from a FreeBSD base to a Debian Linux base.