Hi aris
On second thought...
I think compare traffic is not really a perfect solution for me
I think It will be better to simply the script to ..something like...if traffic for the last 10 minutes is less than 1 megs...than sudo poweroff
What do you think ...which is better for NAS...
You would probably need to set a threshold to filter out any background traffic, such as NTP activity to keep the NASs clock set to
the correct time for example.
If your NAS maintains operational statistics (bytes sent/received, files sent/received, transfer speeds, etc.) that would be the
best data to use to determine whether or not to shut down.