summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. 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)
commitb7528821a105a755062b15af4b3c3bc72cf66870 (patch)
treeefc69f83855dad52293ae34d0229ff8d151f581e
parent3a0f15958e308cfed188aaf8e1a21c42a0223cbd (diff)
busybox.pkg/prerm: Stop and disable services.
-rwxr-xr-xbusybox.pkg/prerm6
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