2014-01-27 17:12:03 +01:00
|
|
|
case "$ACTION" in
|
|
|
|
post)
|
|
|
|
# enable sshd, ntpdate, ntpd and dhcpcd services.
|
2014-07-28 22:20:59 +02:00
|
|
|
if [ -x /usr/bin/systemctl ]; then
|
2014-06-20 11:18:20 +02:00
|
|
|
systemctl enable sshd.service ntpdate.service ntpd.service dhcpcd.service
|
2015-03-24 10:49:50 +01:00
|
|
|
else
|
|
|
|
mkdir -p etc/runit/runsvdir/default/
|
2014-07-28 22:30:37 +02:00
|
|
|
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/
|
2014-06-20 11:18:20 +02:00
|
|
|
fi
|
2014-01-27 17:12:03 +01:00
|
|
|
;;
|
|
|
|
esac
|