summaryrefslogtreecommitdiff
blob: bc9d3f76dd0da1d28c4d0be390297f9f61c67d0c (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
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/capi4k-utils/files/capi-init-20040810,v 1.1 2004/09/24 00:00:46 dragonheart Exp $

depend() {
	after isapnp
}

start() {
	if [ ! -e /etc/capi.conf ] ; then
		eerror "You're missing /etc/capi.conf (comes with a capi-driver)."
		eerror "Emerge net-dialup/fcpci if you are having an AVM Fritz!Card PCI"
		return 1
	fi
	ebegin "Starting CAPI"
	/usr/sbin/capiinit start
	eend $?
}

stop() {
	ebegin "Stopping CAPI"
	/usr/sbin/capiinit stop
	eend $?
}