Browse Source

catch/hide errors from ifconfig carp in case there is no carp.

ok deraadt
OPENBSD_6_5
tedu 5 years ago
parent
commit
3287227e54
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/etc/rc

+ 3
- 3
src/etc/rc View File

@ -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. # 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 # 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. # Set carp interlock by increasing the demotion counter.
# Prevents carp from preempting until the system is booted. # 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 sh /etc/netstart
@ -603,7 +603,7 @@ fi
[[ -f /etc/rc.local ]] && sh /etc/rc.local [[ -f /etc/rc.local ]] && sh /etc/rc.local
# Disable carp interlock. # Disable carp interlock.
ifconfig -g carp -carpdemote 128
ifconfig -g carp -carpdemote 128 >/dev/null 2>&1
mixerctl_conf mixerctl_conf


Loading…
Cancel
Save