From 344ee18a3dc91458b892d6a49ad426ae0309e68a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 03 Jun 2014 11:54:41 -0400 Subject: busybox.pkg/prerm: Fix stdin for init scripts. --- diff --git a/busybox.pkg/prerm b/busybox.pkg/prerm index 6f7635d..160a2d7 100755 --- a/busybox.pkg/prerm +++ b/busybox.pkg/prerm @@ -2,9 +2,9 @@ if [ "x${1}" = 'xupgrade' ]; then if [ -f /usr/share/busybox/init-scripts ]; then - while read script; do + for script in $(cat /usr/share/busybox/init-scripts); do "/etc/init.d/${script}" stop - done