Adjust the mcontext code to match amd64.
[dragonfly.git] / etc / rc.d / resident
blob76ed109d5859e270544b33aa7be31f90bc39de79
1 #!/bin/sh
3 # $DragonFly: src/etc/rc.d/resident,v 1.4 2007/08/08 03:11:00 swildner Exp $
6 # PROVIDE: resident
7 # REQUIRE: mountcritremote
9 . /etc/rc.subr
11 name=resident
12 rcvar='resident_enable'
13 required_files="/etc/resident.conf"
14 start_cmd="resident_start"
15 stop_cmd=":"
17 resident_start()
19 if [ -f /etc/resident.conf ]; then
20 while read path
22 case ${path} in
23 \#*|"")
26 if [ -f ${path} ]; then
27 resident ${path}
28 else
29 file ${path} | grep shared | \
30 cut -f1 -d ':' -s | xargs resident
33 esac
34 done < /etc/resident.conf
38 load_rc_config $name
39 run_rc_command "$1"