summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/postinst
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-03 11:52:09 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-03 11:52:09 (EDT)
commit2fc9828645a4b3750164ae7aade7b678751c0c95 (patch)
tree785659f972ef34eeaa1dfa055ba42a7ea4713609 /busybox.pkg/postinst
parent0d7d1fe00d54726b4ab0a1c38f91213c00eef171 (diff)
busybox.pkg/postinst: Fix stdin for init scripts.
Diffstat (limited to 'busybox.pkg/postinst')
-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