meson: Make sleep.sh and hibernate.sh not required, fixes T6210

This commit is contained in:
William L. Thomson Jr 2017-10-13 16:21:11 -04:00 committed by Mike Blumenkrantz
parent 02ea045ca7
commit 4d96d55c15
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ else
SUSPEND = '/usr/bin/systemctl suspend' SUSPEND = '/usr/bin/systemctl suspend'
HIBERNATE = '/usr/bin/systemctl hibernate' HIBERNATE = '/usr/bin/systemctl hibernate'
else else
sleep = find_program('sleep.sh', '/etc/acpi/sleep.sh', '/sbin/sleep.sh', '/usr/sbin/sleep.sh') sleep = find_program('sleep.sh', '/etc/acpi/sleep.sh', '/sbin/sleep.sh', '/usr/sbin/sleep.sh', required : false)
if sleep.found() == true if sleep.found() == true
SUSPEND = sleep.path() SUSPEND = sleep.path()
if sleep.path() == '/etc/acpi/sleep.sh' if sleep.path() == '/etc/acpi/sleep.sh'
@ -34,7 +34,7 @@ else
endif endif
endif endif
hibernate_sh = find_program('hibernate.sh', '/etc/acpi/hibernate.sh', '/sbin/hibernate.sh', '/usr/sbin/hibernate.sh') hibernate_sh = find_program('hibernate.sh', '/etc/acpi/hibernate.sh', '/sbin/hibernate.sh', '/usr/sbin/hibernate.sh', required : false)
if hibernate_sh.found() == true if hibernate_sh.found() == true
HIBERNATE = hibernate_sh.path() HIBERNATE = hibernate_sh.path()
if hibernate_sh.path() == '/etc/acpi/hibernate.sh' if hibernate_sh.path() == '/etc/acpi/hibernate.sh'