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