summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
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