diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-11-30 15:18:03 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-12-01 22:51:59 +0100 |
commit | 0453d0948186e0ff867999b9b63d3b537bdc0ace (patch) | |
tree | e0939927fa8109c38a347ec6e0705150b534d726 /package/ifplugd | |
parent | e8dc7677521e1ccd48ee76c90ea09b07bf99dbc4 (diff) | |
download | buildroot-0453d0948186e0ff867999b9b63d3b537bdc0ace.tar.gz buildroot-0453d0948186e0ff867999b9b63d3b537bdc0ace.zip |
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>
Diffstat (limited to 'package/ifplugd')
-rw-r--r-- | package/ifplugd/ifplugd.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/package/ifplugd/ifplugd.mk b/package/ifplugd/ifplugd.mk index 398cff464f..3d0736a95b 100644 --- a/package/ifplugd/ifplugd.mk +++ b/package/ifplugd/ifplugd.mk @@ -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)) |