diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-06-14 17:42:05 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-06-14 17:42:05 +0000 |
commit | 2e0d07f426ec71a355d9f9dfb551d8b4a811f811 (patch) | |
tree | c084af9a84dd0f92691aa8c5d682d91cc4008f1d | |
parent | 9cb9bd7644e38f46646f56f32bd7c0f90b2e9c02 (diff) | |
download | upstream-2e0d07f426ec71a355d9f9dfb551d8b4a811f811.tar.gz upstream-2e0d07f426ec71a355d9f9dfb551d8b4a811f811.tar.bz2 upstream-2e0d07f426ec71a355d9f9dfb551d8b4a811f811.zip |
build: do another init script enabling run, fixes init scripts added via files/ (#19857)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45964 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/Makefile b/package/Makefile index a601dcbb31..5fb7363bc9 100644 --- a/package/Makefile +++ b/package/Makefile @@ -111,6 +111,10 @@ $(curdir)/install: $(TMP_DIR)/.build cd $(TARGET_DIR); \ for script in ./usr/lib/opkg/info/*.postinst; do \ IPKG_INSTROOT=$(TARGET_DIR) $$(which bash) $$script; \ + done; \ + for script in ./etc/init.d/*; do \ + grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \ + IPKG_INSTROOT=$(TARGET_DIR) $$(which bash) ./etc/rc.common $$script enable; \ done || true \ ) @-find $(TARGET_DIR) -name CVS | $(XARGS) rm -rf |