From: Peter Korsgaard Date: Tue, 24 Feb 2015 16:29:08 +0000 (+0100) Subject: odhcp6c: install default state script X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=899935b3e29a5aee3b6b26fb0ccfe78a921cfc13;p=buildroot.git odhcp6c: install default state script Signed-off-by: Peter Korsgaard --- diff --git a/package/odhcp6c/odhcp6c.mk b/package/odhcp6c/odhcp6c.mk index 520eaf2e4f..8102c2679c 100644 --- a/package/odhcp6c/odhcp6c.mk +++ b/package/odhcp6c/odhcp6c.mk @@ -9,4 +9,11 @@ ODHCP6C_SITE = $(call github,sbyx,odhcp6c,$(ODHCP6C_VERSION)) ODHCP6C_LICENSE = GPLv2 ODHCP6C_LICENSE_FILES = COPYING +define ODHCP6C_INSTALL_SCRIPT + $(INSTALL) -m 0755 -D $(@D)/odhcp6c-example-script.sh \ + $(TARGET_DIR)/usr/sbin/odhcp6c-update +endef + +ODHCP6C_POST_INSTALL_TARGET_HOOKS += ODHCP6C_INSTALL_SCRIPT + $(eval $(cmake-package))