#!/bin/bash

if [ ! -d /etc/pcmcia ] ; then
	echo "PCMCIA package is not installed correctly!!"
	exit 1
fi

if [ ! -f ./tmpcfg ] ; then
	cp /etc/pcmcia/config /etc/pcmcia/config.bak
	cat config > tmpcfg
	cat /etc/pcmcia/config >> tmpcfg
	cp ./tmpcfg /etc/pcmcia/config
else
	cp ./tmpcfg /etc/pcmcia/config
fi