summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tmp/pre_upgrade_command3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmp/pre_upgrade_command b/tmp/pre_upgrade_command
index 829303e..65c0c1d 100644
--- a/tmp/pre_upgrade_command
+++ b/tmp/pre_upgrade_command
@@ -1,3 +1,6 @@
#!/bin/sh
+# Record the previous version
+PRIOR_VERSION=`uname -r | cut -d'.' -f1`
+echo $PRIOR_VERSION > /tmp/pre_upgrade_version
OpenPOWER on IntegriCloud