pccard_ether revision 31326
1#!/bin/sh - 2# 3# pccard_ether interfacename [ifconfig option] 4# 5# example: pccard_ether ep0 -link0 6# 7 8# Suck in the /etc/rc.conf variables 9if [ -f /etc/rc.conf ]; then 10 . /etc/rc.conf 11fi 12 13if [ "x$pccard_ifconfig" != "xNO" ] ; then 14 if [ "x$pccard_ifconfig" = "xDHCP" ] ; then 15 # DHCP currently not implemented 16 else 17 interface=$1 18 shift 19 ifconfig $interface $pccard_ifconfig $* 20 fi 21fi 22 23if [ "x$defaultrouter" != "xNO" ] ; then 24 static_routes="default ${static_routes}" 25 route_default="default ${defaultrouter}" 26fi 27 28# Set up any static routes. 29if [ "x${static_routes}" != "x" ]; then 30 # flush beforehand, just in case.... 31 route -n flush 32 arp -d -a 33 for i in ${static_routes}; do 34 eval route_args=\$route_${i} 35 route add ${route_args} 36 done 37fi 38