summaryrefslogtreecommitdiffstats
path: root/tmp/pre_upgrade_command
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-09 00:14:14 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-09 00:14:14 +0000
commit828a371f1d6fe4e1fa066609f2df46692bd8aeb6 (patch)
treee12ad230a011b68a69ebd5cca9bb2b9615aa4c5d /tmp/pre_upgrade_command
parentbe38535c65646a9334c607b47a6fa40be157a40e (diff)
downloadpfsense-828a371f1d6fe4e1fa066609f2df46692bd8aeb6.zip
pfsense-828a371f1d6fe4e1fa066609f2df46692bd8aeb6.tar.gz
Move pfsense_kernel.txt to /tmp and remove /boot/kernel/* contents so we
are guarantee'd a fresh kernel directory (note freebsd kernel install moves the old kernel directory to kernel.old so this is very similar.
Diffstat (limited to 'tmp/pre_upgrade_command')
-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 65c0c1d..0556e19 100644
--- a/tmp/pre_upgrade_command
+++ b/tmp/pre_upgrade_command
@@ -4,3 +4,7 @@
PRIOR_VERSION=`uname -r | cut -d'.' -f1`
echo $PRIOR_VERSION > /tmp/pre_upgrade_version
+mv /tmp/pfsense_kernel.txt /tmp/pfsense_kernel.txt
+rm /boot/kernel/*
+mv /tmp/pfsense_kernel.txt
+
OpenPOWER on IntegriCloud