diff options
author | P. 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) |
commit | f2564eba4216b22dd383127792773c6f569613c2 (patch) | |
tree | 1e018978e4cadd3f29a1ecc98c6ab70df04935be /build | |
parent | 693ac52b08fbcb15e7489c7a252ca4f653ed1c1b (diff) |
build: Make install_init_script() install links.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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: |