busybox: install example zcip.script when zcip is activated in config
PATCH 1/1 busybox: install example zcip.script when zcip is activated in config
this way zcip will work out of the box when configured
Signed-off-by Sven Oliver Moll <[email protected]>
--- package/busybox/busybox.mk | 8 ++++++++ 1 file changed, 8 insertions(+)
package/busybox/busybox.mk +8 -0
@@ -207,6 +207,13 @@ define BUSYBOX_INSTALL_UDHCPC_SCRIPT fi endef +define BUSYBOX_INSTALL_ZCIP_SCRIPT + if grep -q CONFIG_ZCIP=y $(@D)/.config; then \ + $(INSTALL) -m 0755 -D $(@D)/examples/zcip.script \ + $(TARGET_DIR)/usr/share/zcip/default.script; \ + fi +endef + ifeq ($(BR2_INIT_BUSYBOX),y) define BUSYBOX_SET_INIT
@@ -352,6 +359,7 @@ define BUSYBOX_INSTALL_TARGET_CMDS $(BUSYBOX_MAKE_ENV) $(MAKE) $(BUSYBOX_MAKE_OPTS) -C $(@D) install-noclobber $(BUSYBOX_INSTALL_INITTAB) $(BUSYBOX_INSTALL_UDHCPC_SCRIPT) + $(BUSYBOX_INSTALL_ZCIP_SCRIPT) $(BUSYBOX_INSTALL_MDEV_CONF) endef
Signature · 1 line
2.20.1
Thomas Petazzoni
AppliedPATCH 1/1 busybox: install example zcip.script when zcip is activated in config
Quoted 6 lines · On Wed, 21 Oct 2020 12:33:43 +0200 (CEST) Sven Oliver Moll <[email protected]>…
this way zcip will work out of the box when configured
Signed-off-by Sven Oliver Moll <[email protected]>--- package/busybox/busybox.mk | 8 ++++++++ 1 file changed, 8 insertions(+)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com