5 # pccard_ether interfacename [ifconfig option]
7 # example: pccard_ether ep0 -link0
10 # Suck in the configuration variables
12 if [ -r /etc/defaults/rc.conf ]; then
13 . /etc/defaults/rc.conf
15 elif [ -r /etc/rc.conf ]; then
22 case ${pccard_ifconfig} in
26 if [ -r /sbin/dhclient ]; then
27 if [ -s /var/run/dhclient.pid ]; then
28 kill `cat /var/run/dhclient.pid`
29 rm /var/run/dhclient.pid
31 /sbin/dhclient $interface
32 elif [ -r /usr/local/sbin/dhcpc ]; then
33 if [ -s /var/run/dhcpc.pid ]; then
34 kill `cat /var/run/dhcpc.pid`
37 /usr/local/sbin/dhcpc $interface $*
39 echo "DHCP client software not available (isc-dhcp2)"
43 ifconfig ${interface} ${pccard_ifconfig} $*
47 case ${defaultrouter} in
51 static_routes="default ${static_routes}"
52 route_default="default ${defaultrouter}"
56 # Set up any static routes.
58 if [ -n "${static_routes}" ]; then
59 # flush beforehand, just in case....
62 for i in ${static_routes}; do
63 eval route_args=\$route_${i}
64 route add ${route_args}