Switch to OpenNTPD by default. For the moment, the documentation is
[dragonfly.git] / etc / rc.d / resident
1 #!/bin/sh
2
3 # $DragonFly: src/etc/rc.d/resident,v 1.2 2004/02/06 08:49:55 rob Exp $
4 #
5
6 # PROVIDE: resident
7 # REQUIRE: mountcritremote
8 # KEYWORD: DragonFly
9
10 . /etc/rc.subr
11
12 name=resident
13 rcvar='resident_enable'
14 required_files="/etc/resident.conf"
15 start_cmd="resident_start"
16 stop_cmd=":"
17
18 resident_start()
19 {
20 if [ -f /etc/resident.conf ]; then
21         while read path 
22         do
23                 case ${path} in
24                 \#*|"")
25                         ;;
26                 *)
27                         if [ -f ${path} ]; then
28                                 resident ${path}
29                         else
30                         file ${path} | grep shared | cut -f1 -d ':' -s | xargs resident
31                         fi
32                 esac
33         done < /etc/resident.conf
34 fi
35
36 }
37
38 load_rc_config $name
39 run_rc_command "$1"