5 # pccard_ether interfacename [ifconfig option]
7 # example: pccard_ether ep0 -link0
10 # Suck in the /etc/rc.conf variables
11 if [ -f /etc/rc.conf ]; then
15 if [ "x$pccard_ifconfig" != "xNO" ] ; then
16 if [ "x$pccard_ifconfig" = "xDHCP" ] ; then
17 if [ -f /usr/local/sbin/dhclient ] ; then
18 if [ -s /var/run/dhclient.pid ] ; then
19 kill `cat /var/run/dhclient.pid`
20 rm /var/run/dhclient.pid
22 /usr/local/sbin/dhclient
23 elif [ -f /usr/local/sbin/dhcpc ] ; then
24 if [ -s /var/run/dhcpc.pid ] ; then
25 kill `cat /var/run/dhcpc.pid`
28 /usr/local/sbin/dhcpc $*
30 echo "DHCP client software not available (isc-dhcp2)"
35 ifconfig $interface $pccard_ifconfig $*
39 if [ "x$defaultrouter" != "xNO" ] ; then
40 static_routes="default ${static_routes}"
41 route_default="default ${defaultrouter}"
44 # Set up any static routes.
45 if [ "x${static_routes}" != "x" ]; then
46 # flush beforehand, just in case....
49 for i in ${static_routes}; do
50 eval route_args=\$route_${i}
51 route add ${route_args}