]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
ifplugd: use <pkg>_INSTALL_INIT_SYSV mechanism
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 30 Nov 2014 14:18:03 +0000 (15:18 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 1 Dec 2014 21:51:59 +0000 (22:51 +0100)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ifplugd/ifplugd.mk

index 398cff464f97cb5f03337356d5406e8e4acb97ac..3d0736a95bdbce1476cc732c090417260c85ad7c 100644 (file)
@@ -29,12 +29,15 @@ define IFPLUGD_INSTALL_FIXUP
                $(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.action \
                        $(TARGET_DIR)/etc/ifplugd/ifplugd.action ; \
        fi
+endef
+
+IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP
+
+define IFPLUGD_INSTALL_INIT_SYSV
        $(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.init \
                $(TARGET_DIR)/etc/init.d/S45ifplugd
        # don't use bash for init script
        $(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd
 endef
 
-IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP
-
 $(eval $(autotools-package))