From bca5e2171c0c430438d09feea508c9d264afdb4c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 5 Apr 2016 11:04:24 +0000 Subject: setup-alpine: fix backwards compat for cron the crond service was previously named 'cron'. support both for backwards compat. --- setup-alpine.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup-alpine.in b/setup-alpine.in index 1a34704..050016c 100644 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -146,8 +146,11 @@ fi rc-update --quiet add networking boot rc-update --quiet add urandom boot -rc-update --quiet add acpid -rc-update --quiet add crond +for svc in acpid cron crond; do + if rc-service --exists $svc; then + rc-update --quiet add $svc + fi +done # enable new hostname /etc/init.d/hostname --quiet restart -- cgit v1.2.3