]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.isdn
Don't take a failure to stat a file to mean that it doesn't exist, as it may
[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 # $FreeBSD$
10 #
11 #---------------------------------------------------------------------------
12
13 case ${isdn_enable} in
14 [Yy][Ee][Ss])
15         echo -n 'ISDN subsystem setup:'
16
17         # Terminal type for fullscreen mode, default to syscons driver
18         #
19         isdn_ttype=cons25
20
21         # Check for pcvt driver (VT100/VT220 emulator)
22         #
23         if [ -x /usr/sbin/ispcvt ]; then
24                 if /usr/sbin/ispcvt; then
25                         isdn_ttype=pcvt25
26                 fi
27         fi
28
29         case ${isdn_flags} in
30         [Nn][Oo] | '')
31                 isdn_flags=''
32                 ;;
33         esac
34
35         # Start the isdn daemon
36         #
37         if [ -x /usr/sbin/isdnd ]; then
38                 echo -n ' isdnd'
39                 case ${isdn_fsdev} in
40                 [Nn][Oo] | '')
41                         /usr/sbin/isdnd ${isdn_flags}
42                         ;;
43                 *)
44                         /usr/sbin/isdnd ${isdn_flags} -f -r ${isdn_fsdev} -t ${isdn_ttype}
45                         ;;
46                 esac
47         fi
48
49         # Start isdntrace
50         #
51         case ${isdn_trace} in
52         [Yy][Ee][Ss])
53                 if [ -x /usr/sbin/isdntrace ]; then
54                         echo -n ' isdntrace'
55                         nohup /usr/sbin/isdntrace ${isdn_traceflags} >/dev/null 2>&1 &
56                 fi
57                 ;;
58         esac
59
60         echo '.'
61         ;;
62 esac