summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-01-05 16:22:06 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-01-05 16:22:11 -0500
commitcf42de70c84632bcee5d6d545b1242f14a73c618 (patch)
tree43122cc998077b67c81319b8b1b3fdf4025c1d5a /tmp
parent7d62c4c873a03ea2458f1b06a8318bd7943c6e8f (diff)
downloadpfsense-cf42de70c84632bcee5d6d545b1242f14a73c618.zip
pfsense-cf42de70c84632bcee5d6d545b1242f14a73c618.tar.gz
Swoop through and stop any packages prior to upgrade. Ticket #1156
Diffstat (limited to 'tmp')
-rw-r--r--tmp/pre_upgrade_command5
1 files changed, 5 insertions, 0 deletions
diff --git a/tmp/pre_upgrade_command b/tmp/pre_upgrade_command
index 3eabc5f..5cad8b5 100644
--- a/tmp/pre_upgrade_command
+++ b/tmp/pre_upgrade_command
@@ -2,6 +2,11 @@
/etc/rc.conf_mount_rw
+# Stop any packages prior to upgrade
+for FILE in /usr/local/etc/rc.d/*.sh; do
+ $FILE stop
+done
+
# Record the previous version
PRIOR_VERSION=`uname -r | cut -d'.' -f1`
echo $PRIOR_VERSION > /tmp/pre_upgrade_version
OpenPOWER on IntegriCloud