A while ago I developed a script to set up disk checks and then turn off the computer, this meant users could avoid the forced boot up check, see the wiki page at:
https://wiki.ubuntu.com/fsckdown
I also wrote an automated version for my own use, it just checks the number of times I log in and then after 25 it asks me and then sets up the shut down checks.
I believe this would be much more useful if it counted boots rather than logins, for obvious reasons. At present the script creates a file /home/***/.fsckdown and stores a number in it, every time I log in the script it called and it checks the number and increments it etc.
I actually need two solutions, firstly I need a place to store my count file which is writable by all users, and secondly I need some way to call the script every boot, and only once every boot.
I've attached the current script.
Any suggestions welcome - Thanks.



Adv Reply

Bookmarks