summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/build b/build
index 17deddc..69ad40b 100755
--- a/build
+++ b/build
@@ -44,6 +44,7 @@ install: build
exec 3>&-
set -e; $(config_enabled); $(install_init_script); \
if config_enabled INIT; then \
+ exec 3>dest/usr/share/busybox/init-scripts; \
install -d -m 0755 dest/etc; \
install -p -m 0644 inittab dest/etc/inittab; \
install -d -m 0755 dest/etc/init.d dest/etc/rc.d; \
@@ -53,7 +54,10 @@ install: build
while read -r config script links; do \
config_enabled "$${config}" && \
install_init_script "$${script}" $${links}; \
+ [ "x$${links:+set}" != 'xset' ] && \
+ printf '%s\n' "$${script}" >&3; \
done <../scripts; \
+ exec 3>&-; \
fi; \
if config_enabled HTTPD; then \
install -d -m 0755 dest/var/www; \