From b7528821a105a755062b15af4b3c3bc72cf66870 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 03 Jun 2014 00:02:28 -0400 Subject: busybox.pkg/prerm: Stop and disable services. --- 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