diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2005-07-25 19:18:45 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2005-07-25 19:18:45 +0000 |
commit | 6c2959862fa9148758da189865ffc2324fd6e7d6 (patch) | |
tree | d10dbbf7066bbd3a6fe3418fae727e4932880e1e /etc | |
parent | 8272b5713745ba8883d2ec7edc49f623a77b2b79 (diff) |
Fix the test for successful ifconfig of carp interface on shutdown, makes
graceful shutdown work correctly.
ok mpf@ deraadt@ a long time ago, committed to local repository by accident.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.270 2005/06/19 16:55:10 deraadt Exp $ +# $OpenBSD: rc,v 1.271 2005/07/25 19:18:44 mcbride Exp $ # System startup script run by init on autoboot # or after single-user. @@ -127,7 +127,7 @@ if [ X"$1" = X"shutdown" ]; then test "$if" = "carp[0-9]*" && continue ifconfig $if > /dev/null 2>&1 - if [ $? -ne 0 ]; then + if [ $? -eq 0 ]; then ifconfig $if down fi done |