#!/bin/bash # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ . /etc/pcmcia/shared . /etc/conf.d/capi # Syslog output syslog() { # /usr/bin/logger -t "capi-pcmcia" "$@" } case "${ACTION}" in start) # loading capi if ! ( [ -f /proc/capi/capi20 ] || /sbin/modprobe -sq capi ); then syslog "could not load CAPI!" exit 1 fi # loading capidrv (should be loaded *after* card driver) if ! ( [ -f /proc/capi/capidrv -o "${CAPI_LOAD_CAPIDRV}" != "yes" ] \ || /sbin/modprobe -sq capidrv ); then syslog "could not load CAPIDRV!" fi ;; stop) ;; esac exit 0