From: Felix Fietkau Date: Sun, 14 Jun 2015 17:42:05 +0000 (+0000) Subject: build: do another init script enabling run, fixes init scripts added via files/ ... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c44d52e0b2406a29202cdf6a9fc64faf1c5a1614;p=openwrt%2Fsvn-archive%2Farchive.git build: do another init script enabling run, fixes init scripts added via files/ (#19857) Signed-off-by: Felix Fietkau SVN-Revision: 45964 --- 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