From fa0c2db835062052bb5b548ed7209f81862f5f19 Mon Sep 17 00:00:00 2001 From: downsj <> Date: Mon, 24 Aug 1998 09:32:50 +0000 Subject: [PATCH] You can't use -interface default when there's no default gateway set (yet). Use -interface $hostname if mygate doesn't exist so that this actually works on routers. --- src/etc/netstart | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index efc4ddff..c8aa280d 100644 --- a/src/etc/netstart +++ b/src/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.39 1998/07/04 13:55:51 deraadt Exp $ +# $OpenBSD: netstart,v 1.40 1998/08/24 09:32:50 downsj Exp $ # /etc/myname contains my symbolic name # @@ -97,7 +97,10 @@ route -n add -net 127 127.0.0.1 -reject # that name must be in /etc/hosts. if [ -f /etc/mygate ]; then route -n add -host default `cat /etc/mygate` -fi -# default multicast route -route -n add -net 224.0.0.0 -interface default + # default multicast route for hosts with a gateway + route -n add -net 224.0.0.0 -interface default +else + # default multicast route + route -n add -net 224.0.0.0 -interface $hostname +fi