diff options
Diffstat (limited to 'busybox.pkg')
-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 |