rpi-base: really enable runit services.
With the latest runit-void pkg, there's no etc/runit/runsvdir/default directory anymore, until the pkg is configured. So create the dir inconditionally to enable the services.
This commit is contained in:
parent
5900d5c105
commit
0079d8d94f
2 changed files with 6 additions and 5 deletions
|
@ -3,10 +3,11 @@ post)
|
|||
# enable sshd, ntpdate, ntpd and dhcpcd services.
|
||||
if [ -x /usr/bin/systemctl ]; then
|
||||
systemctl enable sshd.service ntpdate.service ntpd.service dhcpcd.service
|
||||
elif [ -d etc/runit/runsvdir/default ]; then
|
||||
ln -s /etc/sv/sshd etc/runit/runsvdir/default/
|
||||
ln -s /etc/sv/ntpd etc/runit/runsvdir/default/
|
||||
ln -s /etc/sv/dhcpcd etc/runit/runsvdir/default/
|
||||
else
|
||||
mkdir -p etc/runit/runsvdir/default/
|
||||
ln -sf /etc/sv/sshd etc/runit/runsvdir/default/
|
||||
ln -sf /etc/sv/ntpd etc/runit/runsvdir/default/
|
||||
ln -sf /etc/sv/dhcpcd etc/runit/runsvdir/default/
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'rpi-base'
|
||||
pkgname=rpi-base
|
||||
version=2.0
|
||||
version=2.1
|
||||
revision=1
|
||||
homepage="http://www.voidlinux.eu"
|
||||
short_desc="Void Linux RaspberryPi base files"
|
||||
|
|
Loading…
Reference in a new issue