3 # $NetBSD: isdnd,v 1.9 2002/04/10 23:37:13 martin Exp $
6 # Mostly based on original script (/etc/rc.isdn) written by Hellmuth Michaelis
10 # REQUIRE: netif mountcritlocal cleanvar
16 rcvar=`set_rcvar isdn`
17 pidfile="/var/run/${name}.pid"
18 start_cmd="isdnd_start"
22 echo -n 'ISDN subsystem setup:'
24 # Check for pcvt driver (VT100/VT220 emulator)
26 if [ -x /usr/sbin/ispcvt ]; then
27 if /usr/sbin/ispcvt; then
28 # No vidcontrol if we are using pcvt
39 /usr/sbin/isdnd ${isdn_flags}
42 # Change vidmode of ${isdn_fsdev}
44 case ${isdn_screenflags} in
48 /usr/sbin/vidcontrol < ${isdn_fsdev} > ${isdn_fsdev} 2>&1 ${isdn_screenflags}
52 /usr/sbin/isdnd ${isdn_flags} -f -r ${isdn_fsdev} -t ${isdn_ttype}
58 if checkyesno isdn_trace; then
60 nohup /usr/sbin/isdntrace ${isdn_traceflags} >/dev/null 2>&1 &