diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-07-14 03:45:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-07-14 03:45:56 +0000 |
commit | 72c4ac6d81841f139f7caf37599dec1b66aa2ec0 (patch) | |
tree | ab261b0d6c5a81cddb9ebe52e1e8ebf5a3b6f5f2 | |
parent | 437edf1a5a832783d18254a301603d256c527d69 (diff) |
check for existance of rc.shutdown, before sourcing it
-rw-r--r-- | etc/rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.429 2014/07/13 12:12:30 claudio Exp $ +# $OpenBSD: rc,v 1.430 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 |