diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-10-22 11:39:32 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-10-22 11:40:35 +0200 |
commit | 1cf9d9d1ee1b5bb9ea73208b9635252ab5d883fb (patch) | |
tree | 3fae757c1fe7a0932b8356dbcae09ffec9914c55 | |
parent | 6a33dc6cb1546acf3c5db982e3f44b41bff67b05 (diff) |
Make boot script reboot when fsck told so
* daemons/rc.sh: When fsck returned 2 or 3, reboot the system.
-rw-r--r-- | daemons/rc.sh | 7 |
1 files changed, 6 insertions, 1 deletions
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) |