summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/build b/build
index bd2c326..7e23c7a 100755
--- a/build
+++ b/build
@@ -54,10 +54,13 @@ install: build
ln -sf rc dest/etc/init.d/rcS; \
ln -sf rc dest/etc/init.d/rcK; \
while read -r config script links; do \
- config_enabled "$${config}" && \
- install_init_script "$${script}" $${links}; \
- [ "x$${links:+set}" != 'xset' ] && \
- printf '%s\n' "$${script}" >&3; \
+ if [ "x$${links%abled}" = "x$${links}" ]; then
+ config_enabled "$${config}" && \
+ install_init_script "$${script}" \
+ $${links}; \
+ else \
+ printf '%s %s\n' "$${script}" "$${links}" >&3; \
+ fi; \
done <../scripts; \
exec 3>&-; \
fi; \