mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
add acpid scripts
This commit is contained in:
parent
661e435488
commit
3763e591d4
13
packages/sysutils/busybox/init.d/25_acpi
Executable file
13
packages/sysutils/busybox/init.d/25_acpi
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# start the ACPI daemon subsystem
|
||||
#
|
||||
# runlevels: openelec, text, debug
|
||||
|
||||
. /etc/sysconfig
|
||||
|
||||
progress "Starting ACPI daemon"
|
||||
|
||||
acpid 2>&1 > /dev/null
|
||||
|
||||
exit 0
|
@ -27,4 +27,8 @@ if [ "$2" = system ]; then
|
||||
mkdir -p $INSTALL/sbin
|
||||
cp $PKG_DIR/scripts/init.system $INSTALL/sbin/init.system
|
||||
|
||||
# acpid specific
|
||||
mkdir -p $INSTALL/etc/acpi/PWRF
|
||||
cp $PKG_DIR/scripts/acpi_powerbtn $INSTALL/etc/acpi/PWRF/00000080
|
||||
|
||||
fi
|
||||
|
3
packages/sysutils/busybox/scripts/acpi_powerbtn
Executable file
3
packages/sysutils/busybox/scripts/acpi_powerbtn
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/sbin/poweroff
|
Loading…
x
Reference in New Issue
Block a user