mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
are guarantee'd a fresh kernel directory (note freebsd kernel install moves the old kernel directory to kernel.old so this is very similar.
10 lines
226 B
Bash
10 lines
226 B
Bash
#!/bin/sh
|
|
|
|
# Record the previous version
|
|
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
|