aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorEugene Grosbein <eugen@FreeBSD.org>2018-11-26 13:30:00 +0000
committerEugene Grosbein <eugen@FreeBSD.org>2018-11-26 13:30:00 +0000
commit530d509906bf663a242ad33d2c1309f59a837c45 (patch)
tree2b8e853022e431df2de572517f5307cc87d4329f /usr.sbin
parentf0103a3d51a09508a669ed8275bcf6e8fb5b46a7 (diff)
downloadsrc-530d509906bf663a242ad33d2c1309f59a837c45.tar.gz
src-530d509906bf663a242ad33d2c1309f59a837c45.zip
MFC r339818: rcorder(8):
Add support for /etc/rc.resume, so it calls "rcorder -k resume" and runs scripts containing "KEYWORD: resume" with single "resume" argument. Working example is the port sysutils/cpupdate that defines extra_commands="resume" to reload CPU microcode cleared by suspend/resume sequence. This change does nothing for a system having no scripts with KEYWORD: resume. PR: 227866 Differential Revision: https://reviews.freebsd.org/D15247
Notes
Notes: svn path=/stable/11/; revision=340966
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/acpi/acpiconf/acpiconf.830
1 files changed, 26 insertions, 4 deletions
diff --git a/usr.sbin/acpi/acpiconf/acpiconf.8 b/usr.sbin/acpi/acpiconf/acpiconf.8
index 07862d7efa2a..2116dd19a943 100644
--- a/usr.sbin/acpi/acpiconf/acpiconf.8
+++ b/usr.sbin/acpi/acpiconf/acpiconf.8
@@ -27,7 +27,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 22, 2015
+.Dd October 27, 2018
.Dt ACPICONF 8
.Os
.Sh NAME
@@ -72,13 +72,35 @@ If the
.Pa /etc/rc.suspend
and
.Pa /etc/rc.resume
-scripts are executable, they will be run before and after entering
-the given sleep state.
+scripts are executable, they will be run by
+.Xr devd 8
+or
+.Xr apmd 8
+before and after entering the given sleep state.
+.Pp
+The
+.Pa /etc/rc.resume
+script uses the
+.Xr rcorder 8
+utility to call scripts in
+.Pa /etc/rc.d/
+and the
+.Va $local_startup
+directories that have a "resume" KEYWORD.
+Called scripts are supplied with single "resume"
+command line argument. See
+.Xr rc.conf 5
+for more information about
+.Va $local_startup .
.El
.Sh SEE ALSO
.Xr acpi 4 ,
.Xr acpidump 8 ,
-.Xr apm 8
+.Xr apm 8 ,
+.Xr apmd 8 ,
+.Xr devd 8 ,
+.Xr rc.conf 5 ,
+.Xr rcorder 8
.Sh HISTORY
The
.Nm