summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-07 02:11:33 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-07 02:11:33 +0000
commit6e52053bda065f96383cdce3ec822840233bb8d8 (patch)
tree0c524fd536a305b0b67f0f5e352d20dca7199b68 /tmp
parent39346bbfced221ce4d1645554af899761c380637 (diff)
downloadpfsense-6e52053bda065f96383cdce3ec822840233bb8d8.zip
pfsense-6e52053bda065f96383cdce3ec822840233bb8d8.tar.gz
Record prior version
Diffstat (limited to 'tmp')
-rw-r--r--tmp/pre_upgrade_command4
1 files changed, 4 insertions, 0 deletions
diff --git a/tmp/pre_upgrade_command b/tmp/pre_upgrade_command
index 829303e..4f5732a 100644
--- a/tmp/pre_upgrade_command
+++ b/tmp/pre_upgrade_command
@@ -1,3 +1,7 @@
#!/bin/sh
+# Record the previous version
+PRIOR_VERSION=`uname -r | cut -d'.' -f1`
+echo $PRIOR_VERSION > /tmp/pre_upgrade_version
+
OpenPOWER on IntegriCloud