summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-02 23:18:23 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-02 23:18:23 (EDT)
commit57f175ae5f51376c2657a2b733388eada6296931 (patch)
tree233a5e08ec22d4944dee61e958fbc292bb967d49 /build
parentf57ca38e1627d7228a10093e3e21dcf5b5091354 (diff)
Make most of the /etc/rc.d/ links at install time.
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; \