commit: 456501e78c64d3d76d8c9a404c68a13d352acb21 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Sun Oct 9 20:22:38 2022 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Sat Oct 15 17:33:49 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=456501e7
systemd.eclass: add systemd_get_sleepdir Closes: https://bugs.gentoo.org/873172 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> eclass/systemd.eclass | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass index 9e9a9b0cf205..fbed387e0ca0 100644 --- a/eclass/systemd.eclass +++ b/eclass/systemd.eclass @@ -132,6 +132,14 @@ systemd_get_systempresetdir() { _systemd_get_dir systemdsystempresetdir /lib/systemd/system-preset } +# @FUNCTION: systemd_get_sleepdir +# @DESCRIPTION: +# Output the path for the system sleep directory. +systemd_get_sleepdir() { + debug-print-function ${FUNCNAME} "${@}" + _systemd_get_dir systemdsleepdir /lib/systemd/system-sleep +} + # @FUNCTION: systemd_dounit # @USAGE: <unit>... # @DESCRIPTION:
