artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa1a55e
)
check for existance of rc.shutdown, before sourcing it
author
deraadt
<deraadt@openbsd.org>
Mon, 14 Jul 2014 03:45:55 +0000
(
03:45
+0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 14 Jul 2014 03:45:55 +0000
(
03:45
+0000)
etc/rc
patch
|
blob
|
history
diff --git
a/etc/rc
b/etc/rc
index
befb2f0
..
e65e9fa
100644
(file)
--- a/
etc/rc
+++ b/
etc/rc
@@
-1,4
+1,4
@@
-# $OpenBSD: rc,v 1.4
29 2014/07/13 12:12:30 claudio
Exp $
+# $OpenBSD: rc,v 1.4
30 2014/07/14 03:45:55 deraadt
Exp $
# System startup script run by init on autoboot
# or after single-user.
@@
-283,7
+283,7
@@
if [ X"$1" = X"shutdown" ]; then
fi
echo /etc/rc.shutdown in progress...
- . /etc/rc.shutdown
+
[ -f /etc/rc.shutdown ] &&
. /etc/rc.shutdown
echo /etc/rc.shutdown complete.
else
echo single user: not running shutdown scripts