#!/bin/sh -norc
# -*- shell-script -*-
# post install script for the Debian Linux pcmcia-cs package

set -e

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

/etc/init.d/pcmcia start
