version 1.12, 1996/11/02 00:52:02 |
version 1.13, 1997/02/03 12:04:44 |
|
|
if [ -f /etc/mygate ]; then |
if [ -f /etc/mygate ]; then |
route add default `cat /etc/mygate` |
route add default `cat /etc/mygate` |
fi |
fi |
|
|
# /etc/ifaliases, if it exists, contains the names of additional IP |
|
# addresses for each interface. It is formatted as a series of lines |
|
# that contain |
|
# interface address netmask |
|
if [ -f /etc/ifaliases ]; then |
|
( |
|
# delete comments and blank lines |
|
set -- `sed -e 's/#.*$//' /etc/ifaliases | grep -v '^$'` |
|
|
|
while [ $# -ge 3 ] ; do |
|
ifconfig $1 inet alias $2 netmask $3 |
|
route add $2 localhost |
|
shift 3 |
|
done |
|
) |
|
fi |
|