summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-04-05 11:04:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-05 11:04:24 +0000
commitbca5e2171c0c430438d09feea508c9d264afdb4c (patch)
tree6a686a7841efd250747d0cba063b8f6b7edbd140
parent2218e13cd66e5142352e91eb47b792e8d24d74cf (diff)
downloadalpine-conf-bca5e2171c0c430438d09feea508c9d264afdb4c.zip
setup-alpine: fix backwards compat for cron
the crond service was previously named 'cron'. support both for backwards compat.
-rw-r--r--setup-alpine.in7
1 files 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