rpi-base: remove unused systemd code.
This commit is contained in:
parent
feacf28bc4
commit
e9b93228f6
|
@ -1,13 +1,8 @@
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
post)
|
post)
|
||||||
# enable sshd, ntpdate, ntpd and dhcpcd services.
|
mkdir -p etc/runit/runsvdir/default/
|
||||||
if [ -x /usr/bin/systemctl ]; then
|
ln -sf /etc/sv/sshd etc/runit/runsvdir/default/
|
||||||
systemctl enable sshd.service ntpdate.service ntpd.service dhcpcd.service
|
ln -sf /etc/sv/ntpd etc/runit/runsvdir/default/
|
||||||
else
|
ln -sf /etc/sv/dhcpcd etc/runit/runsvdir/default/
|
||||||
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
|
esac
|
||||||
|
|
Loading…
Reference in New Issue