Browse Source

check for existance of rc.shutdown, before sourcing it

OPENBSD_5_6
deraadt 10 years ago
parent
commit
2dfe92794b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc

+ 2
- 2
src/etc/rc View File

@ -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 # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -283,7 +283,7 @@ if [ X"$1" = X"shutdown" ]; then
fi fi
echo /etc/rc.shutdown in progress... echo /etc/rc.shutdown in progress...
. /etc/rc.shutdown
[ -f /etc/rc.shutdown ] && . /etc/rc.shutdown
echo /etc/rc.shutdown complete. echo /etc/rc.shutdown complete.
else else
echo single user: not running shutdown scripts echo single user: not running shutdown scripts


Loading…
Cancel
Save