From: deraadt Date: Sat, 28 Dec 2013 01:00:18 +0000 (+0000) Subject: document a hack we want fixed later X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5514f3573bdb8ce8e8e0bf0933f6a162f7bdccf4;p=openbsd document a hack we want fixed later --- diff --git a/etc/rc b/etc/rc index c55cf22efbe..b3485af197b 100644 --- a/etc/rc +++ b/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.417 2013/12/27 23:43:39 rpe Exp $ +# $OpenBSD: rc,v 1.418 2013/12/28 01:00:18 deraadt Exp $ # System startup script run by init on autoboot # or after single-user. @@ -232,8 +232,10 @@ fi if [ X"$1" = X"shutdown" ]; then random_seed + # XXX If root is writeable, assume we are not single user chmod 600 /etc/random.seed >/dev/null 2>&1 - _notsingle=$? # root is writeable, so we are not single user?? + _notsingle=$? + if [ ${_notsingle} -eq 0 ]; then if [ -n "${pkg_scripts}" ]; then echo -n 'stopping package daemons:'