From d10bf7668e2640b4634018a3ccc134b4aa9d1efe Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 28 Jul 2014 22:20:08 +0200 Subject: [PATCH] rpi-base: update INSTALL for runit. --- srcpkgs/rpi-base/INSTALL | 8 +++++++- srcpkgs/rpi-base/template | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/srcpkgs/rpi-base/INSTALL b/srcpkgs/rpi-base/INSTALL index 5cf298084da..add2868470c 100644 --- a/srcpkgs/rpi-base/INSTALL +++ b/srcpkgs/rpi-base/INSTALL @@ -1,6 +1,12 @@ case "$ACTION" in post) # enable sshd, ntpdate, ntpd and dhcpcd services. - systemctl enable sshd.service ntpdate.service ntpd.service dhcpcd.service + if [ -x /usr/bin/systemctl ]; then + systemctl enable sshd.service ntpdate.service ntpd.service dhcpcd.service + elif [ -x /usr/bin/runit-init ]; then + ln -s /etc/sv/sshd /var/service/ + ln -s /etc/sv/ntpd /var/service/ + ln -s /etc/sv/dhcpcd /var/service/ + fi ;; esac diff --git a/srcpkgs/rpi-base/template b/srcpkgs/rpi-base/template index a8e4e17065c..4c77173b000 100644 --- a/srcpkgs/rpi-base/template +++ b/srcpkgs/rpi-base/template @@ -1,6 +1,6 @@ # Template file for 'rpi-base' pkgname=rpi-base -version=1.6 +version=1.7 revision=1 homepage="http://www.voidlinux.eu" short_desc="Void Linux RaspberryPi base files"