Changeset View
Changeset View
Standalone View
Standalone View
head/libexec/rc/rc.resume
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
# If a device driver has problems resuming, try unloading it before | # If a device driver has problems resuming, try unloading it before | ||||
# suspend and reloading it on resume. Example: | # suspend and reloading it on resume. Example: | ||||
# kldload usb | # kldload usb | ||||
/usr/bin/logger -t $subsystem resumed at `/bin/date +'%Y%m%d %H:%M:%S'` | /usr/bin/logger -t $subsystem resumed at `/bin/date +'%Y%m%d %H:%M:%S'` | ||||
/bin/sync && /bin/sync && /bin/sync | /bin/sync && /bin/sync && /bin/sync | ||||
. /etc/rc.subr | |||||
load_rc_config | |||||
rcorder_opts="-k resume" | |||||
case ${local_startup} in | |||||
[Nn][Oo] | '') ;; | |||||
*) find_local_scripts_new ;; | |||||
esac | |||||
files=`rcorder ${rcorder_opts} /etc/rc.d/* ${local_rc} 2>/dev/null` | |||||
for _rc_elem in $files; do | |||||
debug "run_rc_script $_rc_elem resume" | |||||
run_rc_script $_rc_elem resume | |||||
done | |||||
exit 0 | exit 0 |