I hope it doesn't need to get any more complex.
Basically I want the script to only reboot the router at night, rather than have it loop when people are in the bathroom.
I shouldn't have to be making this (fail) :@ :@ :@
Got a bash script for checking the speed of my router and rebooting when necessary. It is now time dependant but the line I've used is awful.
So if I've understood this correctly, you want your router to check its speed and reboot only if someone's not using the connection? Dumb question: why not just get it to (check and) reboot once before a new user session?
Eh? New user session?
There's always things connected to it using the connection. So it's not really a time with no activity, just much less. And detecting a "new user session" can't be easy.