mirror of https://github.com/hak5/openwrt.git
build: do another init script enabling run, fixes init scripts added via files/ (#19857)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45964lede-17.01
parent
c41a1affb8
commit
b35846974e
|
@ -111,6 +111,10 @@ $(curdir)/install: $(TMP_DIR)/.build
|
||||||
cd $(TARGET_DIR); \
|
cd $(TARGET_DIR); \
|
||||||
for script in ./usr/lib/opkg/info/*.postinst; do \
|
for script in ./usr/lib/opkg/info/*.postinst; do \
|
||||||
IPKG_INSTROOT=$(TARGET_DIR) $$(which bash) $$script; \
|
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 \
|
done || true \
|
||||||
)
|
)
|
||||||
@-find $(TARGET_DIR) -name CVS | $(XARGS) rm -rf
|
@-find $(TARGET_DIR) -name CVS | $(XARGS) rm -rf
|
||||||
|
|
Loading…
Reference in New Issue