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

# Suck in the /etc/sysconfig variables
if [ -f /etc/sysconfig ]; then
	. /etc/sysconfig
fi

interface=$1
shift

if [ "x$pccard_ether" != "xNO" ] ; then
	eval ifconfig_args=\$ifconfig_${interface}
	if [ "x$ifconfig_args" = "xDHCP" ] ; then
		/usr/local/sbin/dhcpc $interface
	else
		ifconfig $interface $ifconfig_args $*
	fi
fi
