acpid: fixes for previous.
This commit is contained in:
parent
d75fb70b52
commit
9cc4a145ae
3 changed files with 5 additions and 5 deletions
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec acpid -f
|
exec acpid -fl
|
||||||
|
|
|
@ -16,7 +16,7 @@ case "$1" in
|
||||||
case "$2" in
|
case "$2" in
|
||||||
PBTN|PWRF)
|
PBTN|PWRF)
|
||||||
logger "PowerButton pressed: $2"
|
logger "PowerButton pressed: $2"
|
||||||
shutdown -h -P now
|
shutdown -P now
|
||||||
;;
|
;;
|
||||||
*) logger "ACPI action undefined: $2" ;;
|
*) logger "ACPI action undefined: $2" ;;
|
||||||
esac
|
esac
|
||||||
|
@ -68,6 +68,7 @@ case "$1" in
|
||||||
open) logger "LID opened" ;;
|
open) logger "LID opened" ;;
|
||||||
*) logger "ACPI action undefined (LID): $2";;
|
*) logger "ACPI action undefined (LID): $2";;
|
||||||
esac
|
esac
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
logger "ACPI group/action undefined: $1 / $2"
|
logger "ACPI group/action undefined: $1 / $2"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# Template file for 'acpid'
|
# Template file for 'acpid'
|
||||||
pkgname=acpid
|
pkgname=acpid
|
||||||
version=2.0.23
|
version=2.0.23
|
||||||
revision=3
|
revision=4
|
||||||
|
build_options="systemd"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
|
conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
|
||||||
short_desc="The ACPI Daemon (acpid) With Netlink Support"
|
short_desc="The ACPI Daemon (acpid) With Netlink Support"
|
||||||
|
@ -11,8 +12,6 @@ homepage="http://sourceforge.net/projects/acpid2/"
|
||||||
distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-$version.tar.xz"
|
distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-$version.tar.xz"
|
||||||
checksum=4396aaec13510c3a1faa941a15a4b5335b6ae4fbec8438b9249b88c3b66187ee
|
checksum=4396aaec13510c3a1faa941a15a4b5335b6ae4fbec8438b9249b88c3b66187ee
|
||||||
|
|
||||||
build_options="systemd"
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
if [ "$build_option_systemd" ]; then
|
if [ "$build_option_systemd" ]; then
|
||||||
vinstall ${FILESDIR}/acpid.service 644 usr/lib/systemd/system
|
vinstall ${FILESDIR}/acpid.service 644 usr/lib/systemd/system
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue