From f2564eba4216b22dd383127792773c6f569613c2 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 08 Aug 2013 19:54:07 -0400 Subject: build: Make install_init_script() install links. --- 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: -- cgit v0.9.1