summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2005-07-25 19:18:45 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2005-07-25 19:18:45 +0000
commit6c2959862fa9148758da189865ffc2324fd6e7d6 (patch)
treed10dbbf7066bbd3a6fe3418fae727e4932880e1e /etc
parent8272b5713745ba8883d2ec7edc49f623a77b2b79 (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/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index fd487a97e6b..2c8bd797e3e 100644
--- a/etc/rc
+++ b/etc/rc
@@ -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