- fixed scripts (was stoppng service on upgrade), STBR
[packages/capi4k-utils.git] / capi.init
1 #! /bin/sh
2 #
3 # capi          Start/Stop the CAPI 2.0 drivers.
4 #
5 # chkconfig:    2345 09 91
6 # description:  CAPI is a UNIX program that starts the CAPI 2.0 interface \
7 #               for CAPI compatible devices, like AVM PCI and USB devices, \
8 #               certain Eicon DIVA cards, certain Siemens Gigaset devices, \
9 #               certain Hagenuk external modems, etc..
10
11 # Source function library.
12 . /etc/rc.d/init.d/functions
13
14 RETVAL=0
15
16 # See how we were called.
17 case "$1" in
18   start)
19         msg_starting "CAPI 2.0 drivers"
20         daemon capiinit start
21         RETVAL=$?
22         [ $RETVAL -eq 0 ] && touch /var/lock/subsys/capi
23         ;;
24   stop)
25         msg_stopping "CAPI 2.0 drivers"
26         daemon capiinit stop
27         RETVAL=$?
28         [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/capi
29         ;;
30   status)
31         daemon capiinit show
32         RETVAL=$?
33         ;;
34   restart)
35         $0 stop
36         $0 start
37         RETVAL=$?
38         ;;
39   *)
40         msg_usage "$0 {start|stop|restart|status}"
41         exit 3
42 esac
43
44 exit $RETVAL
This page took 0.037801 seconds and 3 git commands to generate.