Browse Source

Bring down carp interfaces gracefully even if powerdown=YES in rc.shutdown.

ok krw@ deraadt@
OPENBSD_3_6
mcbride 20 years ago
parent
commit
3fe2b1eb74
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/etc/rc

+ 6
- 4
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.245 2004/04/28 01:01:27 deraadt Exp $
# $OpenBSD: rc,v 1.246 2004/05/16 04:31:01 mcbride Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -42,9 +42,6 @@ if [ $1x = shutdownx ]; then
echo /etc/rc.shutdown in progress...
. /etc/rc.shutdown
echo /etc/rc.shutdown complete.
if [ "X${powerdown}" = X"YES" ]; then
exit 2
fi
# bring carp interfaces down gracefully
for hn in /etc/hostname.carp[0-9]*; do
@ -57,6 +54,11 @@ if [ $1x = shutdownx ]; then
ifconfig $if down
fi
done
if [ "X${powerdown}" = X"YES" ]; then
exit 2
fi
else
echo single user: not running /etc/rc.shutdown
fi


Loading…
Cancel
Save