aboutsummaryrefslogtreecommitdiffstats
path: root/setup-alpine.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-alpine.in')
-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