1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-01 12:23:50 +03:00

[imagebuilder] fix initscripts activation (closes: #4037, #4745)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15320 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2009-04-21 11:20:25 +00:00
parent 176570cee9
commit 0738089ffd

View File

@ -131,10 +131,10 @@ package_postinst: FORCE
@echo
@echo Activating init scripts
@( \
cd $(BUILD_DIR)/root; \
cd $(TARGET_DIR); \
for script in ./etc/init.d/*; do \
grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \
IPKG_INSTROOT=$(BUILD_DIR)/root $(which bash) ./etc/rc.common $$script enable; \
IPKG_INSTROOT=$(TARGET_DIR) $(which bash) ./etc/rc.common $$script enable; \
done || true; \
)