#!/bin/sh -
#
# pccardether interfacename [ifconfig option]
#
# example: pccardether nep0 link1
#
# HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp>
#

pccarddir=/var/tmp/.pccard

interface=$1
shift
if [ -f $pccarddir/pccard_ether_$interface ] ; then
	ifconfig_args=`cat $pccarddir/pccard_ether_$interface`
	if [ "x$ifconfig_args" = "xDHCP" ] ; then
		/usr/local/sbin/dhcpc $interface
	else
		ifconfig $interface $ifconfig_args $*
	fi
fi
