summaryrefslogtreecommitdiffstats
path: root/tmp/pre_upgrade_command
blob: 0556e19aba0119450ff79142b9d0251476b82ded (plain)
1
2
3
4
5
6
7
8
9
10
#!/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

OpenPOWER on IntegriCloud