]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.isdn
Feed the vty monster.
[FreeBSD/FreeBSD.git] / etc / rc.isdn
1 #!/bin/sh
2 #---------------------------------------------------------------------------
3 #
4 #       /etc/rc.isdn - isdn4bsd startup script
5 #       --------------------------------------
6 #
7 #       last edit-date: [Mon Mar  8 12:15:56 1999]
8 #
9 #       $Id: rc.isdn,v 1.1 1999/01/13 08:20:55 hm Exp $
10 #
11 #---------------------------------------------------------------------------
12
13 if [ "X${isdn_enable}" = X"YES" ] ; then
14
15         echo -n 'ISDN subsystem setup:'
16
17         # terminal type for fullscreen mode, default to syscons driver
18         isdn_ttype=cons25
19
20         # check for pcvt driver (VT100/VT220 emulator)
21         if [ -x /usr/sbin/ispcvt ] ; then
22                 if /usr/sbin/ispcvt ; then
23                         isdn_ttype=pcvt25
24                 fi
25         fi
26         
27         if [ "X${isdn_flags}" = X"NO" ] ; then
28                 isdn_flags=""
29         fi
30         
31         # start the isdn daemon
32         if [ -x /usr/sbin/isdnd ] ; then
33                 echo -n ' isdnd'
34                 if [ "X${isdn_fsdev}" = X"NO" ] ; then
35                         /usr/sbin/isdnd ${isdn_flags} 
36                 else
37                         /usr/sbin/isdnd ${isdn_flags} -f -r ${isdn_fsdev} -t ${isdn_ttype}
38                 fi
39         fi
40
41         # start isdntrace       
42         if [ "X${isdn_trace}" = X"YES" -a -x /usr/sbin/isdntrace ] ; then
43                 echo -n ' isdntrace'
44                 nohup /usr/sbin/isdntrace ${isdn_traceflags} >/dev/null 2>&1 &
45         fi
46
47         echo '.'
48 fi