Redirect touch stderr to /dev/null, error is unlikely and harmless in

normal conditions but certain and irritating and harmless when booting from
cd
This commit is contained in:
Ben Gras 2005-07-24 01:17:32 +00:00
parent 9d1772baf8
commit 4e38cf12b3

3
etc/rc
View file

@ -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