summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-08-08 19:54:07 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-08-08 19:54:07 (EDT)
commitf2564eba4216b22dd383127792773c6f569613c2 (patch)
tree1e018978e4cadd3f29a1ecc98c6ab70df04935be
parent693ac52b08fbcb15e7489c7a252ca4f653ed1c1b (diff)
build: Make install_init_script() install links.
-rwxr-xr-xbuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/build b/build
index 61fff43..e3df393 100755
--- a/build
+++ b/build
@@ -10,8 +10,14 @@ config_enabled = \
install_init_script = \
install_init_script() \
{ \
- install -p -m 0755 "../src.etc/init.d/$${1}" \
- "dest/etc/init.d/$${1}"; \
+ script="$${1}"; \
+ shift; \
+ install -p -m 0755 "../src.etc/init.d/$${script}" \
+ "dest/etc/init.d/$${script}"; \
+ for link; do \
+ ln -s "../init.d/$${script}" \
+ "dest/etc/rc.d/$${link}$${script}"; \
+ done; \
}
nop: