|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: netstart,v 1.99 2004/12/04 00:17:05 itojun Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: netstart,v 1.100 2004/12/19 15:37:58 millert Exp $ |
|
|
|
|
|
|
|
|
# Returns true if $1 contains only alphanumerics |
|
|
# Returns true if $1 contains only alphanumerics |
|
|
isalphanumeric() { |
|
|
isalphanumeric() { |
|
@ -184,14 +184,14 @@ fi |
|
|
|
|
|
|
|
|
# /etc/myname contains my symbolic name |
|
|
# /etc/myname contains my symbolic name |
|
|
if [ -f /etc/myname ]; then |
|
|
if [ -f /etc/myname ]; then |
|
|
hostname=`cat /etc/myname` |
|
|
|
|
|
|
|
|
hostname=`stripcom /etc/myname` |
|
|
hostname $hostname |
|
|
hostname $hostname |
|
|
else |
|
|
else |
|
|
hostname=`hostname` |
|
|
hostname=`hostname` |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ -f /etc/defaultdomain ]; then |
|
|
if [ -f /etc/defaultdomain ]; then |
|
|
domainname `cat /etc/defaultdomain` |
|
|
|
|
|
|
|
|
domainname `stripcom /etc/defaultdomain` |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# Set the address for the loopback interface. Bringing the |
|
|
# Set the address for the loopback interface. Bringing the |
|
@ -284,7 +284,7 @@ fi |
|
|
# 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 -qn delete default > /dev/null 2>&1 |
|
|
route -qn delete default > /dev/null 2>&1 |
|
|
route -qn add -host default `cat /etc/mygate` |
|
|
|
|
|
|
|
|
route -qn add -host default `stripcom /etc/mygate` |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# Multicast routing. |
|
|
# Multicast routing. |
|
|