[LEDE-DEV] [PATCH/RFC] rootfs: don't enable init-scripts during rootfs generation

Daniel Golle daniel at makrotopia.org
Thu May 18 18:39:59 PDT 2017


Init scripts are already being enabled in default_postinst.

Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 include/rootfs.mk | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/rootfs.mk b/include/rootfs.mk
index 74785cbbd3..6167306f0c 100644
--- a/include/rootfs.mk
+++ b/include/rootfs.mk
@@ -70,10 +70,6 @@ define prepare_rootfs
 				exit 1; \
 			fi; \
 		done; \
-		for script in ./etc/init.d/*; do \
-			grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \
-			IPKG_INSTROOT=$(1) $$(which bash) ./etc/rc.common $$script enable; \
-		done || true \
 	)
 	$(if $(SOURCE_DATE_EPOCH),sed -i "s/Installed-Time: .*/Installed-Time: $(SOURCE_DATE_EPOCH)/" $(1)/usr/lib/opkg/status)
 	@-find $(1) -name CVS   | $(XARGS) rm -rf
-- 
2.13.0




More information about the Lede-dev mailing list