its not just the device itself. there are 2x 3,5 hhds and 2x 2,5 hdds attached (media center).
Also there is a (probably invalid) security scare from my spouse, that a “computer” runs the whole night, when it does not need to.
UPDATE 1:
i also checked now and unfortunately the script did not work.
**The Thin Client did NOT shut down at 00:05. I checked the next morning at 08:00 and it was still running. so i manually shut it down. ** the bash script said it should boot up 600 min (10 hrs) after shutdown and when i checked back at 11:00 the thin client was running again.
therefore i think something is wrong with the shutdown command. im trying to investigate
that is how the bash.sh script looks like:
nano shutwake.sh
#!/bin/bash
sh -c "echo 0 > /sys/class/rtc/rtc0/wakealarm"
sh -c "echo `date '+%s' -d '+ 600 minutes'` > /sys/class/rtc/rtc0/wakealarm"
shutdown -h now
In the bash script. In the terminal it is working with just the command, but when you run a cronjob, it run’s from the users (root user) home directory, but the binary for shutdown is not there, it is in /usr/sbin.