summaryrefslogtreecommitdiffstats
path: root/usr.sbin/apmd
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-12-30 17:40:28 +0000
committernjl <njl@FreeBSD.org>2003-12-30 17:40:28 +0000
commit5b48e7752558011e542d72b8abe93e9b4f939f71 (patch)
tree593868c9507cf2d707bce6aa71cdae3fe410dfa6 /usr.sbin/apmd
parent00a572d32f64bd5dfa692784d26cfd9cd5e809bc (diff)
downloadFreeBSD-src-5b48e7752558011e542d72b8abe93e9b4f939f71.zip
FreeBSD-src-5b48e7752558011e542d72b8abe93e9b4f939f71.tar.gz
Use separate events for resume from standby and suspend in the apm(4)
case so that if devices need different initialization, we can key off this in the rc scripts (currently unused). Also update the man page which is a 100% duplicate of the rc scripts.
Diffstat (limited to 'usr.sbin/apmd')
-rw-r--r--usr.sbin/apmd/apmd.810
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/apmd/apmd.8 b/usr.sbin/apmd/apmd.8
index 70ff1b9..10cc6fd 100644
--- a/usr.sbin/apmd/apmd.8
+++ b/usr.sbin/apmd/apmd.8
@@ -252,7 +252,7 @@ STANDBY state instead.
Sample configuration commands include:
.Bd -literal
apm_event SUSPENDREQ {
- exec "/etc/rc.suspend";
+ exec "/etc/rc.suspend apm suspend";
}
apm_event USERSUSPENDREQ {
@@ -261,8 +261,12 @@ apm_event USERSUSPENDREQ {
exec "apm -z";
}
-apm_event NORMRESUME, STANDBYRESUME {
- exec "/etc/rc.resume";
+apm_event NORMRESUME {
+ exec "/etc/rc.resume apm suspend";
+}
+
+apm_event STANDBYRESUME {
+ exec "/etc/rc.resume apm standby";
}
# resume event configuration for serial mouse users by
OpenPOWER on IntegriCloud