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
	;;
esac
