From: mpi Date: Sun, 30 Apr 2017 19:37:13 +0000 (+0000) Subject: Do not try to delete a default route before adding it. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7eced246ad48379a5661cef658422ebcf54e3e27;p=openbsd Do not try to delete a default route before adding it. Now that route are automatically G/C with the address they are attached to there's no reason to duplicate the kernel's job. Fix a regression introduced with multipath default routes. ok deraadt@ --- diff --git a/etc/netstart b/etc/netstart index 4a5eeaaba00..d5d7e343b3e 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.178 2017/04/25 19:17:33 rpe Exp $ +# $OpenBSD: netstart,v 1.179 2017/04/30 19:37:13 mpi Exp $ # Turn off Strict Bourne shell mode. set +o sh @@ -170,12 +170,10 @@ ifv6autoconf() { defaultroute() { [[ -z $dhcpif ]] && stripcom /etc/mygate | while read gw; do [[ $gw == @(*:*) ]] && continue - route -qn delete default >/dev/null 2>&1 route -qn add -host default $gw && break done [[ -z $rtsolif ]] && stripcom /etc/mygate | while read gw; do [[ $gw == !(*:*) ]] && continue - route -qn delete -inet6 default >/dev/null 2>&1 route -qn add -host -inet6 default $gw && break done }