]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/mISDN
OpenVPN converter: Fix coding style and verbose output.
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / mISDN
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
18 case "${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 > /dev/null 2>&1
48 echo_ok;
49 exit 0;
50 ;;
51
52 config)
53 boot_mesg "mISDNv2 - config not needed!"
54 exit 0;
55 ;;
56
57 scan)
58 boot_mesg "mISDNv2 - scan not supported!"
59 exit 0;
60 ;;
61
62 *)
63 echo "Usage: ${0} {start}{stop}"
64 exit 1
65 ;;
66 esac
67
68 # End $rc_base/init.d/mISDN