From 3287227e5497faafd6825966d84cca3f94b7c933 Mon Sep 17 00:00:00 2001 From: tedu <> Date: Mon, 1 Apr 2019 06:59:36 +0000 Subject: [PATCH] catch/hide errors from ifconfig carp in case there is no carp. ok deraadt --- src/etc/rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index a3ce6e3c..8ea08880 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.534 2019/02/24 12:57:14 kn Exp $ +# $OpenBSD: rc,v 1.535 2019/04/01 06:59:36 tedu Exp $ # System startup script run by init on autoboot or after single-user. # Output and error are redirected to console by init, and the console is the @@ -437,7 +437,7 @@ echo 'starting network' # Set carp interlock by increasing the demotion counter. # Prevents carp from preempting until the system is booted. -ifconfig -g carp carpdemote 128 +ifconfig -g carp carpdemote 128 >/dev/null 2>&1 sh /etc/netstart @@ -603,7 +603,7 @@ fi [[ -f /etc/rc.local ]] && sh /etc/rc.local # Disable carp interlock. -ifconfig -g carp -carpdemote 128 +ifconfig -g carp -carpdemote 128 >/dev/null 2>&1 mixerctl_conf