From 1cf9d9d1ee1b5bb9ea73208b9635252ab5d883fb Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 22 Oct 2013 11:39:32 +0200 Subject: Make boot script reboot when fsck told so * daemons/rc.sh: When fsck returned 2 or 3, reboot the system. --- daemons/rc.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'daemons') diff --git a/daemons/rc.sh b/daemons/rc.sh index 57780945..2239bf72 100644 --- a/daemons/rc.sh +++ b/daemons/rc.sh @@ -26,7 +26,12 @@ then 0) ;; # Filesystem modified (but ok now) - 1 | 2) + 1) + ;; + # Filesystem modified, filesystem should be restarted + # Ideally we would only restart the filesystem + 2 | 3) + /sbin/reboot ;; # Fsck couldn't fix it. 4 | 8) -- cgit v1.2.3