diff options
author | Mike Gilbert <floppym@gentoo.org> | 2022-10-09 16:22:38 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2022-10-15 13:33:49 -0400 |
commit | 456501e78c64d3d76d8c9a404c68a13d352acb21 (patch) | |
tree | e30fd7c674b3b5557cc29054e99d5d26bd23f64c /eclass | |
parent | systemd.eclass: rework EPREFIX handling (diff) | |
download | gentoo-456501e78c64d3d76d8c9a404c68a13d352acb21.tar.gz gentoo-456501e78c64d3d76d8c9a404c68a13d352acb21.tar.bz2 gentoo-456501e78c64d3d76d8c9a404c68a13d352acb21.zip |
systemd.eclass: add systemd_get_sleepdir
Closes: https://bugs.gentoo.org/873172
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/systemd.eclass | 8 |
1 files changed, 8 insertions, 0 deletions
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: |