#! /bin/sh
#
# pc_eth0       Initialize or shutdown a PCMCIA ethernet adapter
#
# This script should be invoked with one argument: "start" to turn on
# the interface, or "stop" to turn it off.

# Edit for your setup.
IPADDR="36.103.0.37"	# REPLACE with YOUR IP address!
NETMASK="255.255.255.0"	# REPLACE with YOUR netmask!
NETWORK="36.103.0.0"	# REPLACE with YOUR network address!
BROADCAST="36.103.0.255"	# REPLACE with YOUR broadcast address, if you
			# have one. If not, leave blank and edit below.
GATEWAY="36.103.0.1"	# REPLACE with YOUR gateway address!

case "$1" in
'start')
    /sbin/ifconfig pc_eth0 memstart 0xD6000 ioaddr 0x300 irq 5
    /sbin/ifconfig pc_eth0 up ${IPADDR} broadcast ${BROADCAST} \
        netmask ${NETMASK}
    /sbin/route add -net ${NETWORK} netmask ${NETMASK}
    /sbin/route add default gw ${GATEWAY} metric 1
    ;;
'stop')
    /sbin/route del default
    /sbin/route del ${NETWORK}
    /sbin/ifconfig pc_eth0 down memstart 0 ioaddr 0 irq 0
esac