#!/bin/sh echo Configuring local network loopback ifconfig lo inet 127.0.0.1 netmask 255.0.0.0 if [ "$IPADDR0" != "(null)" ]; then if [ "$IPADDR0" = "dhcp" ]; then /etc/rc.d/rc.dhcpc eth0 else echo Configuring stored IP address $IPADDR0 on eth0 ifconfig eth0 inet $IPADDR0 fi else echo Configuring default IP address 192.168.1.200 on eth0 ifconfig eth0 inet 192.168.1.200 netmask 255.255.255.0 fi # setup default routing through gateway if [ "$GATEWAY" != "(null)" ]; then echo Adding default route via $GATEWAY route add -net default gw $GATEWAY fi if [ "$NFSMOUNT" != "(null)" ]; then echo NFS mounting $NFSMOUNT portmap & mount $NFSMOUNT fi