From 2fc9828645a4b3750164ae7aade7b678751c0c95 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 03 Jun 2014 11:52:09 -0400 Subject: busybox.pkg/postinst: Fix stdin for init scripts. --- 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 /etc/network/interfaces -- cgit v0.9.1