commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 17/26: Make boot script reboot when fsck told so


From: Samuel Thibault
Subject: [hurd] 17/26: Make boot script reboot when fsck told so
Date: Sat, 02 Nov 2013 14:44:45 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 1cf9d9d1ee1b5bb9ea73208b9635252ab5d883fb
Author: Samuel Thibault <address@hidden>
Date:   Tue Oct 22 11:39:32 2013 +0200

    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(-)

diff --git a/daemons/rc.sh b/daemons/rc.sh
index 5778094..2239bf7 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)

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]