forked from enlightenment/enlightenment
e17: create sysactions.conf with suspend/hibernate commands found at configure time.
TDO there should be a notice in summary which commands are used and that sysactions.conf needs to be tweaked SVN revision: 58187
This commit is contained in:
parent
ffacd4b46b
commit
6a6bcb35f9
14
configure.ac
14
configure.ac
|
@ -687,6 +687,19 @@ AC_E_OPTIONAL_MODULE([comp], true)
|
|||
|
||||
AC_E_CHECK_PKG(ENOTIFY, [edbus >= 1.0.0 enotify >= 1.0.0], [], [])
|
||||
|
||||
AC_PATH_PROGS([SUSPEND], [sleep.sh pm-suspend zzz],[/etc/acpi/sleep.sh], [/etc/acpi:/sbin:/usr/sbin:$PATH])
|
||||
if test $SUSPEND = /etc/acpi/sleep.sh ; then
|
||||
SUSPEND="/etc/acpi/sleep.sh force"
|
||||
AC_MSG_NOTICE([use suspend method: $SUSPEND])
|
||||
fi
|
||||
|
||||
AC_PATH_PROGS([HIBERNATE], [hibernate.sh pm-hibernate],[/etc/acpi/hibernate.sh], [/etc/acpi:/sbin:/usr/sbin:$PATH])
|
||||
if test $HIBERNATE = "/etc/acpi/hibernate.sh" ; then
|
||||
HIBERNATE="/etc/acpi/hibernate.sh force"
|
||||
AC_MSG_NOTICE([use hibernate method: $HIBERNATE])
|
||||
fi
|
||||
|
||||
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
enlightenment.spec
|
||||
|
@ -879,6 +892,7 @@ data/xsession/Makefile
|
|||
data/xsession/enlightenment.desktop
|
||||
data/tools/Makefile
|
||||
data/etc/Makefile
|
||||
data/etc/sysactions.conf
|
||||
data/icons/Makefile
|
||||
data/backgrounds/Makefile
|
||||
doc/Makefile
|
||||
|
|
|
@ -45,8 +45,8 @@
|
|||
|
||||
action: halt /sbin/shutdown -h now
|
||||
action: reboot /sbin/shutdown -r now
|
||||
action: suspend /etc/acpi/sleep.sh force
|
||||
action: hibernate /etc/acpi/hibernate.sh force
|
||||
action: suspend @SUSPEND@
|
||||
action: hibernate @HIBERNATE@
|
||||
|
||||
# on FreeBSD use this instead of the above.
|
||||
#action suspend /usr/sbin/zzz
|
Loading…
Reference in New Issue