Add scan and config parameters without function (for installer)
[people/pmueller/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 : 00.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 xhfc; do
25 modprobe $module > /dev/null 2>&1;
26 done
27
28 modprobe mISDN_dsp
29 if [ ${?} = 0 ]; then
30 echo_ok;
31 else
32 echo_failure;
33 fi
34 exit 0;
35 ;;
36
37 stop)
38
39 boot_mesg "Stopping mISDNv2 ... "
40
41 # unload mISDN hardware modules
42 for module in mISDN_dsp hfcpci hfcsusb hfcmulti xhfc; do
43 rmmod $module > /dev/null 2>&1;
44 done
45
46 rmmod mISDN_core
47 if [ ${?} = 0 ]; then
48 echo_ok;
49 else
50 echo_failure;
51 fi
52 exit 0;
53 ;;
54
55 config)
56 boot_mesg "mISDNv2 - config not needed!"
57 exit 0;
58 ;;
59
60 scan)
61 boot_mesg "mISDNv2 - scan not supported!"
62 exit 0;
63 ;;
64
65 *)
66 echo "Usage: ${0} {start}{stop}"
67 exit 1
68 ;;
69 esac
70
71 # End $rc_base/init.d/mISDN