![jow](/assets/img/avatar_default.png)
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
8 lines
156 B
Bash
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
|