]> Zhao Yanbai Git Server - minix.git/commitdiff
Redirect touch stderr to /dev/null, error is unlikely and harmless in
authorBen Gras <ben@minix3.org>
Sun, 24 Jul 2005 01:17:32 +0000 (01:17 +0000)
committerBen Gras <ben@minix3.org>
Sun, 24 Jul 2005 01:17:32 +0000 (01:17 +0000)
normal conditions but certain and irritating and harmless when booting from
cd

etc/rc

diff --git a/etc/rc b/etc/rc
index 58c428ab0c5a63ad999d1f78fb99f525016cd8bd..50b4965069df48e231514555f66d289306001966 100755 (executable)
--- a/etc/rc
+++ b/etc/rc
@@ -106,7 +106,8 @@ Mount $usr /usr failed -- Single user."
     fi
 
     # This file is necessary for above 'shutdown -C' check.
-    touch /usr/adm/wtmp
+    # (Silence stderr in case of running from cd.)
+    touch /usr/adm/wtmp 2>/dev/null
 
     if [ "$sflag" ]
     then