diff options
author | P. J. McDermott <pjm@nac.net> | 2013-08-08 20:33:56 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-08-08 20:33:56 (EDT) |
commit | efbf9a07dce961f7c4af50b74f3d4c354c1fd4bb (patch) | |
tree | a20c8e0570bd9ecabc148583fe0aea160bb8409f /build | |
parent | 99a0ea852131d45fba91582d7a379b40f9582df1 (diff) |
build: Install scripts/links listed in scripts.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -45,18 +45,15 @@ install: install -p -m 0644 ../src.etc/inittab \ dest/etc/inittab; \ fi; \ - install -d -m 0755 dest/etc/init.d; \ - config_enabled HOSTNAME && install_init_script hostname; \ - config_enabled HTTPD && install_init_script httpd && \ - install -d -m 0755 dest/var/www && \ + install -d -m 0755 dest/etc/init.d dest/etc/rc.d; \ + while read -r config script links; do \ + config_enabled "$${config}" && \ + install_init_script "$${script}" $${links}; \ + done <../scripts; \ + if config_enabled HTTPD; then \ + install -d -m 0755 dest/var/www; \ install -p -m 0644 ../src.var/www/index.html \ dest/var/www/index.html; \ - config_enabled KLOGD && install_init_script klogd; \ - config_enabled MDEV && install_init_script mdev; \ - config_enabled MOUNT_FSTAB && install_init_script mountall; \ - config_enabled MOUNT_FLAGS && install_init_script mountkernfs; \ - config_enabled IFUPDOWN && install_init_script networking; \ - config_enabled SYSLOGD && install_init_script syslog; \ - config_enabled TELNETD && install_init_script telnetd; \ + fi; \ fi oh-installfiles |