|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: netstart,v 1.27 1997/08/19 21:55:15 niklas Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: netstart,v 1.28 1997/08/25 20:50:37 millert Exp $ |
|
|
|
|
|
|
|
|
# set these to "NO" to turn them off. otherwise, they're used as flags |
|
|
# set these to "NO" to turn them off. otherwise, they're used as flags |
|
|
routed_flags=NO # for 'normal' use: routed_flags=-q |
|
|
routed_flags=NO # for 'normal' use: routed_flags=-q |
|
@ -71,7 +71,7 @@ fi |
|
|
ifconfig lo0 inet localhost |
|
|
ifconfig lo0 inet localhost |
|
|
|
|
|
|
|
|
# use loopback, not the wire |
|
|
# use loopback, not the wire |
|
|
route add $hostname localhost |
|
|
|
|
|
|
|
|
route add -host $hostname localhost |
|
|
route add -net 127 127.0.0.1 -reject |
|
|
route add -net 127 127.0.0.1 -reject |
|
|
|
|
|
|
|
|
# configure all of the non-loopback interfaces which we know about. |
|
|
# configure all of the non-loopback interfaces which we know about. |
|
@ -132,7 +132,7 @@ route add -net 127 127.0.0.1 -reject |
|
|
# /etc/mygate, if it exists, contains the name of my gateway host |
|
|
# /etc/mygate, if it exists, contains the name of my gateway host |
|
|
# that name must be in /etc/hosts. |
|
|
# that name must be in /etc/hosts. |
|
|
if [ -f /etc/mygate ]; then |
|
|
if [ -f /etc/mygate ]; then |
|
|
route add default `cat /etc/mygate` |
|
|
|
|
|
|
|
|
route add -host default `cat /etc/mygate` |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# default multicast route |
|
|
# default multicast route |
|
|