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.
This commit is contained in:
Scott Ullrich 2008-11-09 00:14:14 +00:00
parent be38535c65
commit 828a371f1d

View File

@ -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