summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/prerm
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-03 11:54:41 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-03 11:54:41 (EDT)
commit344ee18a3dc91458b892d6a49ad426ae0309e68a (patch)
tree9ff13a8a7077b0cac599aa11d826be89581f218a /busybox.pkg/prerm
parent2fc9828645a4b3750164ae7aade7b678751c0c95 (diff)
busybox.pkg/prerm: Fix stdin for init scripts.
Diffstat (limited to 'busybox.pkg/prerm')
-rwxr-xr-xbusybox.pkg/prerm4
1 files changed, 2 insertions, 2 deletions
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 </usr/share/busybox/init-scripts
+ done
fi
while read link name prio; do
update-alternatives --remove "${name}" "${link}.busybox"