summaryrefslogtreecommitdiffstats
path: root/tools/templates/core_pkg/kernel/metadir/+DEINSTALL
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-10-26 15:07:16 -0200
committerRenato Botelho <renato@netgate.com>2016-10-26 15:07:16 -0200
commit349b210203450a27f91be2cfdd46f4e96e912c2f (patch)
treed1789f9af4df54b5d0e6d5cb7ce8327aab005b72 /tools/templates/core_pkg/kernel/metadir/+DEINSTALL
parent892d88163861bd9248acd9686f6a91f2a6b585c4 (diff)
downloadpfsense-349b210203450a27f91be2cfdd46f4e96e912c2f.zip
pfsense-349b210203450a27f91be2cfdd46f4e96e912c2f.tar.gz
ARM kernel is not compressed, deal with that
Diffstat (limited to 'tools/templates/core_pkg/kernel/metadir/+DEINSTALL')
-rw-r--r--tools/templates/core_pkg/kernel/metadir/+DEINSTALL3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/templates/core_pkg/kernel/metadir/+DEINSTALL b/tools/templates/core_pkg/kernel/metadir/+DEINSTALL
index fa2cb42..aab42e4 100644
--- a/tools/templates/core_pkg/kernel/metadir/+DEINSTALL
+++ b/tools/templates/core_pkg/kernel/metadir/+DEINSTALL
@@ -7,7 +7,8 @@ fi
echo "===> Keeping a copy of current kernel in /boot/kernel.old"
# Check if there is a current kernel to be moved
-if [ ! -f /boot/kernel/kernel.gz ]; then
+if [ ! -f /boot/kernel/kernel.gz ] \
+ && [ ! -f /boot/kernel/kernel ]; then
echo "ERROR: Current kernel not found"
exit 1
fi
OpenPOWER on IntegriCloud