summaryrefslogtreecommitdiffstats
path: root/tmp/pre_upgrade_command
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-07 02:11:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-07 02:11:27 +0000
commit7a4e37e10c1af790fedc24e5b994e52030a6afd8 (patch)
tree09f4557f73d7393c8fe09eb6a639b9db1b3df1d4 /tmp/pre_upgrade_command
parent4a8e802d8497a4cb6847bb3ebeee78d527008722 (diff)
downloadpfsense-7a4e37e10c1af790fedc24e5b994e52030a6afd8.zip
pfsense-7a4e37e10c1af790fedc24e5b994e52030a6afd8.tar.gz
Record prior version
Diffstat (limited to 'tmp/pre_upgrade_command')
-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