ifplugd: use <pkg>_INSTALL_INIT_SYSV mechanism
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>
This commit is contained in:
parent
e8dc767752
commit
0453d09481
@ -29,12 +29,15 @@ define IFPLUGD_INSTALL_FIXUP
|
|||||||
$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.action \
|
$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.action \
|
||||||
$(TARGET_DIR)/etc/ifplugd/ifplugd.action ; \
|
$(TARGET_DIR)/etc/ifplugd/ifplugd.action ; \
|
||||||
fi
|
fi
|
||||||
|
endef
|
||||||
|
|
||||||
|
IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP
|
||||||
|
|
||||||
|
define IFPLUGD_INSTALL_INIT_SYSV
|
||||||
$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.init \
|
$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.init \
|
||||||
$(TARGET_DIR)/etc/init.d/S45ifplugd
|
$(TARGET_DIR)/etc/init.d/S45ifplugd
|
||||||
# don't use bash for init script
|
# don't use bash for init script
|
||||||
$(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd
|
$(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP
|
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
Reference in New Issue
Block a user