From 7eced246ad48379a5661cef658422ebcf54e3e27 Mon Sep 17 00:00:00 2001 From: mpi Date: Sun, 30 Apr 2017 19:37:13 +0000 Subject: [PATCH] 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@ --- etc/netstart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 } -- 2.20.1