From 899935b3e29a5aee3b6b26fb0ccfe78a921cfc13 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 24 Feb 2015 17:29:08 +0100 Subject: [PATCH] odhcp6c: install default state script Signed-off-by: Peter Korsgaard --- package/odhcp6c/odhcp6c.mk | 7 +++++++ 1 file changed, 7 insertions(+) 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)) -- 2.30.2