Date: Thu, 3 May 2018 23:03:07 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: freebsd-acpi@freebsd.org Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: D15247: add rcorder(8) support to /etc/rc.resume Message-ID: <5AEB32BB.40502@grosbein.net>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --36k032L4l8gnKumd9QBWBJd61wSoQqjbD Content-Type: multipart/mixed; boundary="i10jINebtXcW0oxibA5jLLiOCQLXDhiWA"; protected-headers="v1" From: Eugene Grosbein <eugen@grosbein.net> To: freebsd-acpi@freebsd.org Cc: FreeBSD Current <freebsd-current@freebsd.org> Message-ID: <5AEB32BB.40502@grosbein.net> Subject: D15247: add rcorder(8) support to /etc/rc.resume --i10jINebtXcW0oxibA5jLLiOCQLXDhiWA Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Hi! While dealing with https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D22= 7866 I've found we have no easy way to insert custom "hooks" after ACPI resume procedure other than devd(8). And running devd itself may be undesirable for several reasons. Manual editing of /etc/rc.resume is not desirable too because it makes upgrades less smooth. So, I'd like to add rcorder(8) support to /etc/rc.resume: https://reviews= =2Efreebsd.org/D15247 /etc/rc.resume will call "rcorder -k resume" and run rcNG scripts containing "KEYWORD: resume" with single "resume" argument. Working example is the port sysutils/cpupdate version g20180324_1 that defines extra_commands=3D"resume" to reload CPU microcode cleared by= suspend/resume sequence. This change does nothing if system has no rcNG scripts with "KEYWORD: res= ume" inside. I'm going to commit this in a week unless told not to for a reason. --i10jINebtXcW0oxibA5jLLiOCQLXDhiWA-- --36k032L4l8gnKumd9QBWBJd61wSoQqjbD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJa6zLFAAoJELDNGvImmIsovNoH/1keONB2dbx9TMFVw8HG3LDO WGPzFtuqSwiGUv9imkftcpf9vYly4iishNqkW07lko8huNFbI1fTIkukd4d/hKwf TuB/QVcT6ABQJEzgwXqhic187p8b0HYC+PEcqLcJkIHipiDhY81RA/ek007vK6Xd 4Aj5OwOIypqU/x45wfYo+cKzDgeOhboEKm04oSV5dpWqJfVV8BpFHwVeRFHJ0DiO bDyQmVQHYGsnFy4R8B/qjdefdAhK80FwicO2+FKA9CE2hSLxcAReTpddSo34Gqbu 2dI/fd1g0Yby8oQahuNELAz2P0kp1oOiBnGLv212RfQDfpozRxJOuwH1qBmjVDU= =1l39 -----END PGP SIGNATURE----- --36k032L4l8gnKumd9QBWBJd61wSoQqjbD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5AEB32BB.40502>