mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
acpid: use acpid for powerbutton shutdown.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
etc/rc.d/helper/getdnsfromdhcpc.pl
|
||||
etc/rc.d/helper/writeipac.pl
|
||||
#etc/rc.d/init.d
|
||||
#etc/rc.d/init.d/acpid
|
||||
etc/rc.d/init.d/acpid
|
||||
#etc/rc.d/init.d/alsa
|
||||
#etc/rc.d/init.d/amavisd
|
||||
etc/rc.d/init.d/apache
|
||||
|
||||
@@ -20,8 +20,3 @@
|
||||
###############################################################################
|
||||
# Used for private calls after boot #
|
||||
###############################################################################
|
||||
|
||||
# power button shutdown
|
||||
if grep -q '^button' /proc/modules ; then
|
||||
( head -1 /proc/acpi/event | grep -q 'button/power PWRF' && poweroff ) &
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user