diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-06-03 00:02:28 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-06-03 00:02:28 (EDT) |
commit | b7528821a105a755062b15af4b3c3bc72cf66870 (patch) | |
tree | efc69f83855dad52293ae34d0229ff8d151f581e | |
parent | 3a0f15958e308cfed188aaf8e1a21c42a0223cbd (diff) |
busybox.pkg/prerm: Stop and disable services.
-rwxr-xr-x | busybox.pkg/prerm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/busybox.pkg/prerm b/busybox.pkg/prerm index 54b5053..9734cd7 100755 --- a/busybox.pkg/prerm +++ b/busybox.pkg/prerm @@ -1,6 +1,12 @@ #!/bin/sh if [ "x${1}" = 'xremove' ]; then + if [ -e /usr/share/busybox/init-scripts ]; then + while read script; do + "/etc/init.d/${script}" stop + "/etc/init.d/${script}" disable + done </usr/share/busybox/init-scripts + fi while read link name prio; do update-alternatives --remove "${name}" "${link}.busybox" done </usr/share/busybox/alternatives |