summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/postinst
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-03 00:13:09 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-03 00:13:09 (EDT)
commitb40911184ddf0c5d82c8de2fbd9998b0f41fc3e9 (patch)
tree69fb2e6a3ca37867bb142968858479a2855f47c5 /busybox.pkg/postinst
parent18e4ec6c8a9005b2c3431f4fa87f354c7961e730 (diff)
busybox.pkg/postinst: Enable services on install.
Do nothing on upgrade. Respect the user's configuration.
Diffstat (limited to 'busybox.pkg/postinst')
-rwxr-xr-xbusybox.pkg/postinst4
1 files changed, 3 insertions, 1 deletions
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 </usr/share/busybox/init-scripts
fi