summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'busybox.pkg/postinst')
-rwxr-xr-xbusybox.pkg/postinst11
1 files changed, 6 insertions, 5 deletions
diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst
index c003561..9f23a39 100755
--- a/busybox.pkg/postinst
+++ b/busybox.pkg/postinst
@@ -13,11 +13,12 @@ if [ "x${1}" = 'xconfigure' ]; then
fi
fi
if [ -f /usr/share/busybox/init-scripts ]; then
- for script in $(cat /usr/share/busybox/init-scripts); do
- if [ "x${2:+set}" != 'xset' ]; then
- "/etc/init.d/${script}" enable
+ while read -r script enabled; do
+ if [ "x${enabled}" = 'xenabled' ]; then
+ [ "x${2:+set}" != 'xset' ] && \
+ "/etc/init.d/${script}" enable
+ "/etc/init.d/${script}" start
fi
- "/etc/init.d/${script}" start
- done
+ done </usr/share/busybox/init-scripts
fi
fi