summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-10-22 11:39:32 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-10-22 11:40:35 +0200
commit1cf9d9d1ee1b5bb9ea73208b9635252ab5d883fb (patch)
tree3fae757c1fe7a0932b8356dbcae09ffec9914c55 /daemons
parent6a33dc6cb1546acf3c5db982e3f44b41bff67b05 (diff)
Make boot script reboot when fsck told so
* daemons/rc.sh: When fsck returned 2 or 3, reboot the system.
Diffstat (limited to 'daemons')
-rw-r--r--daemons/rc.sh7
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)