diff options
author | P. 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) |
commit | 57f175ae5f51376c2657a2b733388eada6296931 (patch) | |
tree | 233a5e08ec22d4944dee61e958fbc292bb967d49 /build | |
parent | f57ca38e1627d7228a10093e3e21dcf5b5091354 (diff) |
Make most of the /etc/rc.d/ links at install time.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; \ |