diff options
Diffstat (limited to 'busybox.pkg/prerm')
-rwxr-xr-x | busybox.pkg/prerm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/busybox.pkg/prerm b/busybox.pkg/prerm index 54b5053..160a2d7 100755 --- a/busybox.pkg/prerm +++ b/busybox.pkg/prerm @@ -1,6 +1,11 @@ #!/bin/sh -if [ "x${1}" = 'xremove' ]; then +if [ "x${1}" = 'xupgrade' ]; then + if [ -f /usr/share/busybox/init-scripts ]; then + for script in $(cat /usr/share/busybox/init-scripts); do + "/etc/init.d/${script}" stop + done + fi while read link name prio; do update-alternatives --remove "${name}" "${link}.busybox" done </usr/share/busybox/alternatives |