aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2015-02-24 17:29:08 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2015-02-24 17:29:08 +0100
commit899935b3e29a5aee3b6b26fb0ccfe78a921cfc13 (patch)
tree27594680917f05b1072882e31e6feba2df24355e
parent91374388d0ca560532578b1db951a7c34f292c4e (diff)
downloadbuildroot-899935b3e29a5aee3b6b26fb0ccfe78a921cfc13.tar.gz
buildroot-899935b3e29a5aee3b6b26fb0ccfe78a921cfc13.tar.bz2
odhcp6c: install default state script
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/odhcp6c/odhcp6c.mk7
1 files changed, 7 insertions, 0 deletions
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))