diff options
author | P. 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) |
commit | cd2f172b691a5889a84b65fab8b202c308e1168b (patch) | |
tree | bab00a16f09a7d2f38beafa119cafc7a89482f0f /build | |
parent | be963ce882813d6931214a66f2fbe28cccf9d495 (diff) |
Allow services to be disabled by default.
Disable telnetd.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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; \ |