mirror of
https://git.freebsd.org/ports.git
synced 2026-06-02 11:08:52 +00:00
sysutils/keyd: add resume support after S3 suspend
keyd breaks after S3 suspend/resume because USB devices aren't ready on restart. Add resume keyword and a delayed restart to the rc script. PR: 270603 Approved by: chalpin@cs.wisc.edu (maintainer timeout)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
PORTNAME= keyd
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 2.6.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
|
||||
MAINTAINER= chalpin@cs.wisc.edu
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# PROVIDE: keyd
|
||||
# REQUIRE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
# KEYWORD: resume shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf to enable this service:
|
||||
#
|
||||
@@ -13,6 +13,8 @@
|
||||
|
||||
name="keyd"
|
||||
rcvar="${name}_enable"
|
||||
resume_cmd="sleep 3; run_rc_command restart"
|
||||
extra_commands="resume"
|
||||
|
||||
load_rc_config "$name"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user