summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2005-07-25 19:18:44 +0000
committermcbride <mcbride@openbsd.org>2005-07-25 19:18:44 +0000
commitb844ef19bda2af25e64c7871f974869ec0e3cc1e (patch)
tree0964e559747686c54f20a91424d8d76e3347ed26
parentUse payload NAT-D or NAT-D-DRAFT according to NAT-T vendor ID advertised by the (diff)
downloadwireguard-openbsd-b844ef19bda2af25e64c7871f974869ec0e3cc1e.tar.xz
wireguard-openbsd-b844ef19bda2af25e64c7871f974869ec0e3cc1e.zip
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.
-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