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:
parent
9d1772baf8
commit
4e38cf12b3
1 changed files with 2 additions and 1 deletions
3
etc/rc
3
etc/rc
|
@ -106,7 +106,8 @@ Mount $usr /usr failed -- Single user."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This file is necessary for above 'shutdown -C' check.
|
# 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" ]
|
if [ "$sflag" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue