1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00

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.
This commit is contained in:
Nate Lawson 2003-12-30 17:40:28 +00:00
parent 56c46bdee4
commit a6991e097f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124003
2 changed files with 13 additions and 5 deletions

View File

@ -13,8 +13,12 @@ apm_event USERSUSPENDREQ {
exec "apm -z";
}
apm_event NORMRESUME, STANDBYRESUME {
exec "/etc/rc.resume apm 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

View File

@ -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