]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/initscripts/init.d/mISDN
core76: Sort exclude file alphabetically.
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / mISDN
CommitLineData
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
18case "${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 28 modprobe mISDN_dsp
b29c22a4 29 modprobe mISDN_dsp_oslec
6070a03e
AF
30 if [ ${?} = 0 ]; then
31 echo_ok;
0ca06802 32 else
6070a03e 33 echo_failure;
0ca06802 34 fi
6070a03e
AF
35 exit 0;
36 ;;
c6c9630e 37
6070a03e 38 stop)
0ca06802 39
6070a03e 40 boot_mesg "Stopping mISDNv2 ... "
c6c9630e 41
6070a03e 42 # unload mISDN hardware modules
b29c22a4 43 for module in mISDN_dsp_oslec mISDN_dsp hfcpci hfcsusb hfcmulti avmfritz speedfax mISDNinfineon xhfc mISDNipac mISDNisar; do
6070a03e 44 rmmod $module > /dev/null 2>&1;
0ca06802 45 done
0ca06802 46
9c3b2450
AF
47 rmmod mISDN_core > /dev/null 2>&1
48 echo_ok;
6070a03e 49 exit 0;
c6c9630e
MT
50 ;;
51
1f97e648
AF
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
c6c9630e 62 *)
6070a03e
AF
63 echo "Usage: ${0} {start}{stop}"
64 exit 1
c6c9630e 65 ;;
c6c9630e
MT
66esac
67
6070a03e 68# End $rc_base/init.d/mISDN