]> Zhao Yanbai Git Server - minix.git/commitdiff
Guard /usr/adm/wtmp for shutdown -C check
authorBen Gras <ben@minix3.org>
Mon, 4 Jul 2005 13:30:55 +0000 (13:30 +0000)
committerBen Gras <ben@minix3.org>
Mon, 4 Jul 2005 13:30:55 +0000 (13:30 +0000)
etc/rc

diff --git a/etc/rc b/etc/rc
index 8978c1a4bf9dcde0b876f153099998cf8416cf3b..646dbf78d06ba41bc7acd7be5f10d53e24374ede 100755 (executable)
--- a/etc/rc
+++ b/etc/rc
@@ -104,6 +104,9 @@ Mount $usr /usr failed -- Single user."
        mount $usr /usr
     fi
 
+    # This file is necessary for above 'shutdown -C' check.
+    touch /usr/adm/wtmp
+
     if [ "$sflag" ]
     then
        echo "Single user."