From b40911184ddf0c5d82c8de2fbd9998b0f41fc3e9 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 03 Jun 2014 00:13:09 -0400 Subject: busybox.pkg/postinst: Enable services on install. Do nothing on upgrade. Respect the user's configuration. --- diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst index fbdd6b4..844b0a5 100755 --- a/busybox.pkg/postinst +++ b/busybox.pkg/postinst @@ -14,7 +14,9 @@ if [ "x${1}" = 'xconfigure' ]; then fi if [ -e /usr/share/busybox/init-scripts ]; then while read script; do - "/etc/init.d/${script}" enable + if [ "x${2:+set}" != 'xset' ]; then + "/etc/init.d/${script}" enable + fi "/etc/init.d/${script}" start done