]>
Commit | Line | Data |
---|---|---|
6070a03e AF |
1 | #!/bin/sh |
2 | ######################################################################## | |
3 | # Begin $rc_base/init.d/mISDN | |
0ca06802 | 4 | # |
6070a03e | 5 | # Description : Start mISDN v2 |
0ca06802 | 6 | # |
6070a03e | 7 | # Authors : Arne Fitzenreiter - arne_f@ipfire.org |
0ca06802 | 8 | # |
d7211302 | 9 | # Version : 01.00 |
0ca06802 | 10 | # |
6070a03e | 11 | # Notes : |
0ca06802 | 12 | # |
6070a03e | 13 | ######################################################################## |
0ca06802 | 14 | |
6070a03e AF |
15 | . /etc/sysconfig/rc |
16 | . ${rc_functions} | |
c6c9630e | 17 | |
6070a03e AF |
18 | case "${1}" in |
19 | start) | |
c6c9630e | 20 | |
6070a03e | 21 | boot_mesg "Starting mISDNv2 ... " |
0ca06802 | 22 | |
6070a03e | 23 | # load mISDN modules |
d7211302 | 24 | for module in mISDN_core hfcpci hfcsusb hfcmulti avmfritz speedfax mISDNinfineon xhfc; do |
6070a03e | 25 | modprobe $module > /dev/null 2>&1; |
0ca06802 | 26 | done |
0ca06802 | 27 | |
6070a03e AF |
28 | modprobe mISDN_dsp |
29 | if [ ${?} = 0 ]; then | |
30 | echo_ok; | |
0ca06802 | 31 | else |
6070a03e | 32 | echo_failure; |
0ca06802 | 33 | fi |
6070a03e AF |
34 | exit 0; |
35 | ;; | |
c6c9630e | 36 | |
6070a03e | 37 | stop) |
0ca06802 | 38 | |
6070a03e | 39 | boot_mesg "Stopping mISDNv2 ... " |
c6c9630e | 40 | |
6070a03e | 41 | # unload mISDN hardware modules |
d7211302 | 42 | for module in mISDN_dsp hfcpci hfcsusb hfcmulti avmfritz speedfax mISDNinfineon xhfc mISDNipac mISDNisar; do |
6070a03e | 43 | rmmod $module > /dev/null 2>&1; |
0ca06802 | 44 | done |
0ca06802 | 45 | |
6070a03e AF |
46 | rmmod mISDN_core |
47 | if [ ${?} = 0 ]; then | |
48 | echo_ok; | |
0ca06802 | 49 | else |
6070a03e | 50 | echo_failure; |
0ca06802 | 51 | fi |
6070a03e | 52 | exit 0; |
c6c9630e MT |
53 | ;; |
54 | ||
1f97e648 AF |
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 | ||
c6c9630e | 65 | *) |
6070a03e AF |
66 | echo "Usage: ${0} {start}{stop}" |
67 | exit 1 | |
c6c9630e | 68 | ;; |
c6c9630e MT |
69 | esac |
70 | ||
6070a03e | 71 | # End $rc_base/init.d/mISDN |