summaryrefslogtreecommitdiffstats
path: root/tmp/pre_upgrade_command
blob: 3eabc5fcc3da7a5da1006680b7ec4837326f1f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

/etc/rc.conf_mount_rw

# Record the previous version
PRIOR_VERSION=`uname -r | cut -d'.' -f1`
echo $PRIOR_VERSION > /tmp/pre_upgrade_version

mv /boot/kernel/pfsense_kernel.txt /tmp/pfsense_kernel.txt
rm /boot/kernel/*
mv /tmp/pfsense_kernel.txt /boot/kernel/

OpenPOWER on IntegriCloud