poll - Fix events == 0 handling for TAP and TUN, fix console spam
[dragonfly.git] / etc / rc.d / resident
blob9e4c2083eaac7100dd1af8074bd7fe2def6df88a
1 #!/bin/sh
3 # PROVIDE: resident
4 # REQUIRE: mountcritremote
6 . /etc/rc.subr
8 name=resident
9 rcvar='resident_enable'
10 required_files="/etc/resident.conf"
11 start_cmd="resident_start"
12 stop_cmd=":"
14 resident_start()
16 if [ ! -f /etc/resident.conf ]; then
17 return
20 while read path; do
21 case ${path} in
22 \#*|"")
25 if [ -f ${path} ]; then
26 resident ${path}
27 else
28 file ${path} | grep shared | \
29 cut -f1 -d ':' -s | xargs resident
32 esac
33 done < /etc/resident.conf
36 load_rc_config $name
37 run_rc_command "$1"