Add gcc40 build hooks. Gcc40 isn't built per default, you will have to
[dragonfly.git] / etc / rc.d / isdnd
1 #!/bin/sh
2 #
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.4 2005/04/22 00:55:32 swildner Exp $
6 #
7 # Mostly based on original script (/etc/rc.isdn) written by  Hellmuth Michaelis
8 #
9
10 # PROVIDE: isdnd
11 # REQUIRE: netif mountcritlocal
12 # KEYWORD: DragonFly 
13
14 . /etc/rc.subr
15
16 name="isdnd"
17 rcvar=`set_rcvar isdn`
18 pidfile="/var/run/${name}.pid"
19 start_cmd="isdnd_start"
20
21 isdnd_start()
22 {
23         echo -n 'ISDN subsystem setup:'
24
25         # Start isdnd
26         #
27         echo -n ' isdnd'
28         case ${isdn_fsdev} in
29         [Nn][Oo] | '')
30                 /usr/sbin/isdnd ${isdn_flags}
31                 ;;
32         *)
33                 # Change vidmode of ${isdn_fsdev}
34                 #
35                 case ${isdn_screenflags} in
36                 [Nn][Oo])
37                         ;;
38                 *)
39                         /usr/sbin/vidcontrol < ${isdn_fsdev} > ${isdn_fsdev} 2>&1 ${isdn_screenflags}
40                         ;;
41                 esac
42
43                 /usr/sbin/isdnd ${isdn_flags} -f -r ${isdn_fsdev} -t ${isdn_ttype}
44                 ;;
45         esac
46
47         # Start isdntrace
48         #
49         if checkyesno isdn_trace; then
50                 echo -n ' isdntrace'
51                 nohup /usr/sbin/isdntrace ${isdn_traceflags} >/dev/null 2>&1 &
52         fi
53         echo '.'
54 }
55
56 load_rc_config $name
57 run_rc_command "$1"