blob: 107b7fa2d9b2c29325610fc7e0e566269440ae16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/capi4k-utils/files/capi.pcmcia,v 1.1.1.1 2005/11/30 09:46:11 chriswhite Exp $
. /etc/pcmcia/shared
. /etc/conf.d/capi
# Syslog output
syslog() { # <msg>
/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
|