From cd2f172b691a5889a84b65fab8b202c308e1168b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 25 Jun 2014 13:30:17 -0400 Subject: Allow services to be disabled by default. Disable telnetd. --- (limited to 'busybox.pkg/prerm') diff --git a/busybox.pkg/prerm b/busybox.pkg/prerm index 96a3db6..30ebdab 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 - for script in $(cat /usr/share/busybox/init-scripts); do + while read -r script enabled; do "/etc/init.d/${script}" stop - done + done