version 1.99, 2004/12/04 00:17:05 |
version 1.100, 2004/12/19 15:37:58 |
|
|
|
|
# /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 |
|
|
# 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. |