diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-04-05 11:04:24 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-04-05 11:04:24 +0000 |
commit | bca5e2171c0c430438d09feea508c9d264afdb4c (patch) | |
tree | 6a686a7841efd250747d0cba063b8f6b7edbd140 /setup-alpine.in | |
parent | 2218e13cd66e5142352e91eb47b792e8d24d74cf (diff) | |
download | alpine-conf-bca5e2171c0c430438d09feea508c9d264afdb4c.zip |
setup-alpine: fix backwards compat for cron
the crond service was previously named 'cron'. support both for
backwards compat.
Diffstat (limited to 'setup-alpine.in')
-rw-r--r-- | setup-alpine.in | 7 |
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 |