rpi-base: remove unused systemd code.

This commit is contained in:
maxice8 2018-08-26 16:11:42 -03:00
parent feacf28bc4
commit e9b93228f6
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -1,13 +1,8 @@
case "$ACTION" in
post)
# enable sshd, ntpdate, ntpd and dhcpcd services.
if [ -x /usr/bin/systemctl ]; then
systemctl enable sshd.service ntpdate.service ntpd.service dhcpcd.service
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
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/
;;
esac