diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-28 01:00:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-28 01:00:19 +0000 |
commit | 9d81e86c9ea50729d855091678b465e0f03afbc0 (patch) | |
tree | 2c6ed9af734e24f36f3ff450401d038cc59afd54 | |
parent | 4b54052ed1c6c3a5db2255ba08d43a9536194991 (diff) |
document a hack we want fixed later
-rw-r--r-- | etc/rc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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:' |