diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-06-25 13:30:17 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-06-25 13:30:17 (EDT) |
commit | cd2f172b691a5889a84b65fab8b202c308e1168b (patch) | |
tree | bab00a16f09a7d2f38beafa119cafc7a89482f0f /busybox.pkg/prerm | |
parent | be963ce882813d6931214a66f2fbe28cccf9d495 (diff) |
Allow services to be disabled by default.
Disable telnetd.
Diffstat (limited to 'busybox.pkg/prerm')
-rwxr-xr-x | busybox.pkg/prerm | 4 |
1 files changed, 2 insertions, 2 deletions
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 </usr/share/busybox/init-scripts fi while read link name prio; do update-alternatives --remove "${name}" "${link}.busybox" |