- Fix compiling umsm(4) with UMSM_DEBUG
[dragonfly.git] / etc / rc.d / isdnd
blobe554918d28b7ec3a53136a54f25d95dd8cac30be
1 #!/bin/sh
3 # $NetBSD: isdnd,v 1.9 2002/04/10 23:37:13 martin Exp $
4 # $FreeBSD: src/etc/rc.d/isdnd,v 1.15 2003/07/15 12:39:37 mtm Exp $
5 # $DragonFly: src/etc/rc.d/isdnd,v 1.5 2005/11/19 21:47:32 swildner Exp $
7 # Mostly based on original script (/etc/rc.isdn) written by Hellmuth Michaelis
10 # PROVIDE: isdnd
11 # REQUIRE: netif mountcritlocal
13 . /etc/rc.subr
15 name="isdnd"
16 rcvar=`set_rcvar isdn`
17 pidfile="/var/run/${name}.pid"
18 start_cmd="isdnd_start"
20 isdnd_start()
22 echo -n 'ISDN subsystem setup:'
24 # Start isdnd
26 echo -n ' isdnd'
27 case ${isdn_fsdev} in
28 [Nn][Oo] | '')
29 /usr/sbin/isdnd ${isdn_flags}
32 # Change vidmode of ${isdn_fsdev}
34 case ${isdn_screenflags} in
35 [Nn][Oo])
38 /usr/sbin/vidcontrol < ${isdn_fsdev} > ${isdn_fsdev} 2>&1 ${isdn_screenflags}
40 esac
42 /usr/sbin/isdnd ${isdn_flags} -f -r ${isdn_fsdev} -t ${isdn_ttype}
44 esac
46 # Start isdntrace
48 if checkyesno isdn_trace; then
49 echo -n ' isdntrace'
50 nohup /usr/sbin/isdntrace ${isdn_traceflags} >/dev/null 2>&1 &
52 echo '.'
55 load_rc_config $name
56 run_rc_command "$1"