sleep: install default sleep.conf

Closes #11310.
This commit is contained in:
Yu Watanabe 2019-01-03 02:32:57 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent aa70783f55
commit d25e127dbe
2 changed files with 28 additions and 0 deletions

View File

@ -2396,6 +2396,9 @@ executable('systemd-sleep',
install : true, install : true,
install_dir : rootlibexecdir) install_dir : rootlibexecdir)
install_data('src/sleep/sleep.conf',
install_dir : pkgsysconfdir)
exe = executable('systemd-sysctl', exe = executable('systemd-sysctl',
'src/sysctl/sysctl.c', 'src/sysctl/sysctl.c',
include_directories : includes, include_directories : includes,

25
src/sleep/sleep.conf Normal file
View File

@ -0,0 +1,25 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See systemd-sleep.conf(5) for details
[Sleep]
#AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
#SuspendMode=
#SuspendState=mem standby freeze
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
#HibernateDelaySec=180min