Hacker News new | ask | show | jobs
by fnordfnordfnord 4093 days ago
#!/bin/bash sudo reboot

#put this in cron daily? #2:10 am sound okay? #10 2 * * *

A better solution might be to check the wifi status periodically and take some action based on the status.

Even better, find out why it is happening and fix that.

Even better-er, add some sort of anti-squirrel weapon.

2 comments

I actually started down the path of getting making cron restart the wlan interface every 24 hours but I ran into some issues and gave up on it. I suppose rebooting the whole machine would also work :) May do that as a short term fix.

I will have to try again to figure out why this is happening, there must be an explanation.

I was almost embarrassed to post that simple minded solution. So thanks for posting that one. I am prone to forget that sometimes, stupidly simple is best.

PS to OP. You might need to fiddle with /etc/sudoers in order that cron can be allowed to reboot the machine.

Haha, so relevant.