summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-25 13:30:17 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-25 13:30:17 (EDT)
commitcd2f172b691a5889a84b65fab8b202c308e1168b (patch)
treebab00a16f09a7d2f38beafa119cafc7a89482f0f /build
parentbe963ce882813d6931214a66f2fbe28cccf9d495 (diff)
Allow services to be disabled by default.
Disable telnetd.
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; \