summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/rc7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 272dfc46aa6..e134a0a9c03 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.242 2004/03/30 16:59:25 otto Exp $
+# $OpenBSD: rc,v 1.243 2004/04/26 02:00:57 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -52,7 +52,10 @@ if [ $1x = shutdownx ]; then
if=${hn#/etc/hostname.}
test "$if" = "carp[0-9]*" && continue
- ifconfig $if down
+ ifconfig $if > /dev/null 2>&1
+ if [ "$?" != "0" ]; then
+ ifconfig $if down
+ fi
done
else
echo single user: not running /etc/rc.shutdown