diff options
-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: |