4 ms·
#!/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 periodi
by fnordfnordfnord 12y 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.
- callesgg 12y agohttps://xkcd.com/1495/ https://xkcd.com/1495/
- fnordfnordfnord 12y agoI 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.
- mattgmg 12y agoHaha, so relevant.
- mattgmg 12y agoI 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.