autofsck behaviour after unclean shutdown

If a system goes down without proper shutdown it will tell you so during reboot and asks if you want to check the filesystem integrity. Unfortunately the prompt will stay there forever if you do not enter anything. To avoid unnecessary dowwntime due to system waiting for input the behaviour can be configured in the file /etc/sysconfig/autofsck (create it if it does not exist):

AUTOFSCK_TIMEOUT=5
AUTOFSCK_DEF_CHECK=no

The prompt will wait 5 seconds for input and then switch to the configured behaviour. "no" will skip the check (with ext3 the journal should keep the integrity), "yes" will force an integrity check.