From aebefc1e5a70a834813a218b37633629e7a41562 Mon Sep 17 00:00:00 2001 From: Sven Oliver Moll Date: Wed, 21 Oct 2020 12:33:43 +0200 Subject: [PATCH] package/busybox: install example zcip.script when zcip is enabled this way zcip will work out of the box when configured Signed-off-by: Sven Oliver Moll Signed-off-by: Thomas Petazzoni --- package/busybox/busybox.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 01f7331221..76ab30780c 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -208,6 +208,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 @@ -366,6 +373,7 @@ define BUSYBOX_INSTALL_TARGET_CMDS $(BUSYBOX_INSTALL_INDIVIDUAL_BINARIES) $(BUSYBOX_INSTALL_INITTAB) $(BUSYBOX_INSTALL_UDHCPC_SCRIPT) + $(BUSYBOX_INSTALL_ZCIP_SCRIPT) $(BUSYBOX_INSTALL_MDEV_CONF) endef -- 2.30.2