blob: 77a2a760f75eeb0cdcaaf30f763e602b7d0abc8e (
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
# $Id$
. /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
|