#!/bin/sh
set -e

if [ "$1" = "configure" ]
then
    if [ ! -f /etc/pcmcia.conf ] ; then
	echo PCMCIA=yes > /etc/pcmcia.conf
	echo PCIC=`/sbin/probe -m` >> /etc/pcmcia.conf
	echo PCIC_OPTS= >> /etc/pcmcia.conf
	echo CORE_OPTS= >> /etc/pcmcia.conf
    fi

    update-rc.d pcmcia defaults 10 90 >/dev/null
fi
