summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbusybox.pkg/postinst4
1 files changed, 2 insertions, 2 deletions
diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst
index b23c6b7..0b44e2c 100755
--- a/busybox.pkg/postinst
+++ b/busybox.pkg/postinst
@@ -13,12 +13,12 @@ if [ "x${1}" = 'xconfigure' ]; then
fi
fi
if [ -f /usr/share/busybox/init-scripts ]; then
- while read script; do
+ for script in $(cat /usr/share/busybox/init-scripts); do
if [ "x${2:+set}" != 'xset' ]; then
"/etc/init.d/${script}" enable
fi
"/etc/init.d/${script}" start
- done </usr/share/busybox/init-scripts
+ done
fi
if [ -d /etc/network ] && ! [ -f /etc/network/interfaces ]; then
exec 3>/etc/network/interfaces