summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild19
1 files changed, 8 insertions, 11 deletions
diff --git a/build b/build
index e3df393..e5a53a1 100755
--- a/build
+++ b/build
@@ -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