diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1998-08-24 09:32:51 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1998-08-24 09:32:51 +0000 |
commit | 1e3d3539f93fd5d9ac81b83a4eb7fb32b690c65c (patch) | |
tree | 503679601326041ec85afda1de91aea01d134808 /etc/netstart | |
parent | 01430e67241b114ac5a2eecb3fd7562f0e596726 (diff) |
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.
Diffstat (limited to 'etc/netstart')
-rw-r--r-- | etc/netstart | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/etc/netstart b/etc/netstart index efc4ddff184..c8aa280dd3a 100644 --- a/etc/netstart +++ b/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 |