mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
new package:
- add acpid package
This commit is contained in:
parent
b41f8a68ab
commit
3b5674ae66
2
packages/sysutils/acpid/arch
Normal file
2
packages/sysutils/acpid/arch
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
i386
|
||||||
|
x86_64
|
9
packages/sysutils/acpid/build
Executable file
9
packages/sysutils/acpid/build
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
$SCRIPTS/build toolchain
|
||||||
|
|
||||||
|
cd $PKG_BUILD
|
||||||
|
|
||||||
|
make CC=$CC CFLAGS="$CFLAGS -DVERSION=\"\" -D_GNU_SOURCE"
|
2
packages/sysutils/acpid/config/powerbtn
Normal file
2
packages/sysutils/acpid/config/powerbtn
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
event=button[ /]power.*
|
||||||
|
action=/sbin/poweroff
|
10
packages/sysutils/acpid/init.d.old/25_acpi
Executable file
10
packages/sysutils/acpid/init.d.old/25_acpi
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# start the ACPI daemon subsystem
|
||||||
|
#
|
||||||
|
# runlevels: geexbox, debug, configure
|
||||||
|
|
||||||
|
echo "### Starting ACPI daemon subsystem ###"
|
||||||
|
acpid 2>&1 > /dev/null
|
||||||
|
|
||||||
|
exit 0
|
15
packages/sysutils/acpid/install
Executable file
15
packages/sysutils/acpid/install
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
PKG_DIR=`find $PACKAGES -type d -name $1`
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/bin
|
||||||
|
cp $PKG_BUILD/acpid $INSTALL/usr/bin
|
||||||
|
[ "$DEVTOOLS" = yes ] && \
|
||||||
|
cp $PKG_BUILD/acpi_listen $INSTALL/usr/bin
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/etc/acpi/events
|
||||||
|
cp $PKG_DIR/config/* $INSTALL/etc/acpi/events
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/etc/acpi/scripts
|
1
packages/sysutils/acpid/url
Normal file
1
packages/sysutils/acpid/url
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://switch.dl.sourceforge.net/sourceforge/acpid/acpid-1.0.10.tar.gz
|
Loading…
x
Reference in New Issue
Block a user