summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrpe <rpe@openbsd.org>2017-05-01 14:29:39 +0000
committerrpe <rpe@openbsd.org>2017-05-01 14:29:39 +0000
commit9d45a1e425ffa8c6db10c35b07e3cf8ff17df452 (patch)
tree844a20f62484e34c8453fec548ba32f99b2e4435
parentRemove last remnants of rtsol. IPv6 autoconfiguration of interfaces is now (diff)
downloadwireguard-openbsd-9d45a1e425ffa8c6db10c35b07e3cf8ff17df452.tar.xz
wireguard-openbsd-9d45a1e425ffa8c6db10c35b07e3cf8ff17df452.zip
Apply same change of defaultroute handling as in r1.179 of netstart.
Now that routes are automatically G/C with the address they are attached to there's no reason to duplicate the kernel's job.
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 1 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index de817ad2236..c47a26257f3 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.999 2017/05/01 14:22:36 rpe Exp $
+# $OpenBSD: install.sub,v 1.1000 2017/05/01 14:29:39 rpe Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -2254,13 +2254,11 @@ enable_network() {
! $V4_DHCPCONF && stripcom /mnt/etc/mygate |
while read _gw; do
[[ $_gw == @(*:*) ]] && continue
- route -qn delete default >/dev/null 2>&1
route -qn add -host default $_gw && break
done
! $V6_AUTOCONF && stripcom /mnt/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