packages/utils/acpid/files/acpid.hotplug
jow 9ec10c9555 new package acpid and related kernel modules
Hi,

Here is a new package called acpid and a related kernel module
kmod-button. Its main pupose is to listen for
acpi events and run a user defined script. For now only powerdown is
possible. I only tested this under the
X86 architecture.

Maybe somebody find that useful too.

regards.
thomas

git-svn-id: svn://svn.openwrt.org/openwrt/packages@30991 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-18 20:48:24 +00:00

8 lines
156 B
Bash

#!/bin/sh
. /etc/functions.sh
if [ "$ACTION" = add ] && [ "$DEVICENAME" = event0 ]; then
( /etc/init.d/acpid/stop; sleep 3; /usr/sbin/acpid )&
fi