Updated mISDN,mISDNuser (25.5.2010) and lcr (1.7).
[ipfire-2.x.git] / src / initscripts / init.d / mISDN
... / ...
CommitLineData
1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/mISDN
4#
5# Description : Start mISDN v2
6#
7# Authors : Arne Fitzenreiter - arne_f@ipfire.org
8#
9# Version : 01.00
10#
11# Notes :
12#
13########################################################################
14
15. /etc/sysconfig/rc
16. ${rc_functions}
17
18case "${1}" in
19 start)
20
21 boot_mesg "Starting mISDNv2 ... "
22
23 # load mISDN modules
24 for module in mISDN_core hfcpci hfcsusb hfcmulti avmfritz speedfax mISDNinfineon xhfc; do
25 modprobe $module > /dev/null 2>&1;
26 done
27
28 modprobe mISDN_dsp
29 modprobe mISDN_dsp_oslec
30 if [ ${?} = 0 ]; then
31 echo_ok;
32 else
33 echo_failure;
34 fi
35 exit 0;
36 ;;
37
38 stop)
39
40 boot_mesg "Stopping mISDNv2 ... "
41
42 # unload mISDN hardware modules
43 for module in mISDN_dsp_oslec mISDN_dsp hfcpci hfcsusb hfcmulti avmfritz speedfax mISDNinfineon xhfc mISDNipac mISDNisar; do
44 rmmod $module > /dev/null 2>&1;
45 done
46
47 rmmod mISDN_core
48 if [ ${?} = 0 ]; then
49 echo_ok;
50 else
51 echo_failure;
52 fi
53 exit 0;
54 ;;
55
56 config)
57 boot_mesg "mISDNv2 - config not needed!"
58 exit 0;
59 ;;
60
61 scan)
62 boot_mesg "mISDNv2 - scan not supported!"
63 exit 0;
64 ;;
65
66 *)
67 echo "Usage: ${0} {start}{stop}"
68 exit 1
69 ;;
70esac
71
72# End $rc_base/init.d/mISDN