All pastes #416451 Raw Edit

Anonymous

public text v1 · immutable
#416451 ·published 2007-03-30 08:06 UTC
rendered paste body
# Check whether the system has cardmgr or pcmciautils
# and proceed accordingly
cardctl &> /dev/null
CARDMGR=$?
pccardctl &> /dev/null
PCMCIAUTILS=$?

if [ $PCMCIAUTILS != 127 -a $CARDMGR == 127 ] 
then
	echo "Pcmciautils present : copying UDEV scripts"
	cp -f ./contrib/udev/80-scm-pcmcia.rules /etc/udev/rules.d
	cp -f ./contrib/udev/scr24x-node /etc/pcmcia
else
	echo "Copying cardmgr scripts"
	cp -f ./contrib/cardmgr/SCM.conf /etc/pcmcia
	cp -f ./contrib/cardmgr/smartcardreader-24x /etc/pcmcia
fi