[packages] acpid: fix copyright year, depend on kmod-acpi-button, use init script...
[openwrt/svn-archive/archive.git] / utils / acpid / Makefile
index 01533d4f944bd37a55d53dc0dd0b70fc81857c80..23a07ec6e2130508feffe6fcf367783faf853048 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2010 OpenWrt.org
+# Copyright (C) 2012 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -22,7 +22,7 @@ define Package/acpid
   CATEGORY:=Utilities
   TITLE:=The ACPI Daemon (acpid) With Netlink Support
   URL:=http://tedfelix.com/linux/acpid-netlink.html
-  DEPENDS:=+kmod-input-evdev +kmod-button 
+  DEPENDS:=+kmod-input-evdev +kmod-acpi-button
 endef
 
 define Package/acpid/description
@@ -56,7 +56,7 @@ define Package/acpid/postinst
        echo "waiting for input devices to come up"
        /etc/init.d/acpid enable
        sleep 5
-       /usr/sbin/acpid
+       /etc/init.d/acpid start
        echo "please try the power button"
        exit 0
 }