2 ########################################################################
3 # Begin $network_devices/services/isdn
5 # Description : ISDN Script
7 # Authors : Michael Tremer - mitch@ipfire.org
13 ########################################################################
17 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/ppp
/settings
)
21 boot_mesg
"Bringing up the ISDN interface..."
23 if [ "$ENABLED" = "on" ]; then
24 modprobe
-r hisax_st5481
2>/dev
/null
25 modprobe
-r hisax_fcpcipnp
2>/dev
/null
26 modprobe
-r hisax_isac
2>/dev
/null
27 modprobe
-r hisax
2>/dev
/null
29 if [ "$TYPE" = "998" ]; then
30 modprobe hisax_st5481 protocol
=$PROTOCOL $MODULE_PARAMS
33 elif [ "$TYPE" = "999" ]; then
34 modprobe hisax_fcpcipnp protocol
=$PROTOCOL $MODULE_PARAMS
38 modprobe hisax protocol
=$PROTOCOL type=$TYPE $MODULE_PARAMS
44 logger
-t red
"ISDN: "No ISDN enabled
"
51 boot_mesg "Bringing down the ISDN interface...
"
52 isdnctrl delif ippp1 2>/dev/null || failed=1
53 isdnctrl delif ippp0 2>/dev/null || failed=1
54 killproc ipppd 2>/dev/null || failed=1
55 killproc ibod 2>/dev/null || failed=1
56 modprobe -r hisax_st5481 2>/dev/null || failed=1
57 modprobe -r hisax_fcpcipnp 2>/dev/null || failed=1
58 modprobe -r hisax_isac 2>/dev/null || failed=1
59 modprobe -r hisax 2>/dev/null || failed=1
65 echo "Usage
: ${0} {up|down
}"
70 # End $network_devices/services/isdn