From 5dd03bd5fb7b542be5ebd29ebf207680a27c78d5 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 5 Jun 2018 00:25:39 +0200 Subject: [PATCH] Add raw service list to enable for init package Signed-off-by: David Oberhollenzer --- board/alix/INIT | 3 ++- board/rpi3/INIT | 1 + pkg/init/build | 6 +++++- product/router/INIT | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 product/router/INIT diff --git a/board/alix/INIT b/board/alix/INIT index 469d868..fff73b2 100644 --- a/board/alix/INIT +++ b/board/alix/INIT @@ -1,3 +1,4 @@ GETTY_TTY="ttyS0" HWCLOCK="yes" -DHCP_PORTS="" \ No newline at end of file +DHCP_PORTS="" +SERVICES="" \ No newline at end of file diff --git a/board/rpi3/INIT b/board/rpi3/INIT index 8548754..7b4b14c 100644 --- a/board/rpi3/INIT +++ b/board/rpi3/INIT @@ -1,3 +1,4 @@ GETTY_TTY="tty1 tty2 tty3 tty4 tty5 tty6 tty7" DHCP_PORTS="" HWCLOCK="no" +SERVICES="" \ No newline at end of file diff --git a/pkg/init/build b/pkg/init/build index 48e1c78..a25bf10 100755 --- a/pkg/init/build +++ b/pkg/init/build @@ -61,7 +61,11 @@ deploy() { ln -s "/share/init/dhcpcd" "$DEPLOY/etc/init.d/dhcpcd@$svc" done - unset -v i GETTY_TTY HWCLOCK DHCP_PORTS + for svc in $SERVICES; do + ln -s "/share/init/$svc" "$DEPLOY/etc/init.d/$svc" + done + + unset -v i GETTY_TTY HWCLOCK DHCP_PORTS SERVICES } check_update() { diff --git a/product/router/INIT b/product/router/INIT new file mode 100644 index 0000000..f33cbbd --- /dev/null +++ b/product/router/INIT @@ -0,0 +1 @@ +SERVICES+="unbound dnsmasq"