summaryrefslogtreecommitdiffstats
path: root/tmp/post_upgrade_command
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-01-03 09:28:12 -0500
committerjim-p <jimp@pfsense.org>2013-01-03 09:29:35 -0500
commit82bce0a16f63c811e6d66bccbe70090844f2a3d1 (patch)
treed3c95bc092ceaf1ee49619379f2cd724b480beb2 /tmp/post_upgrade_command
parenteef77bfe0df4af723edbd2d283a50e2151269ad2 (diff)
downloadpfsense-82bce0a16f63c811e6d66bccbe70090844f2a3d1.zip
pfsense-82bce0a16f63c811e6d66bccbe70090844f2a3d1.tar.gz
Be a little smarter about the default kernel in rare cases where we cannot determine what was in use.
Diffstat (limited to 'tmp/post_upgrade_command')
-rwxr-xr-xtmp/post_upgrade_command6
1 files changed, 5 insertions, 1 deletions
diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command
index 634afb0..9e3dc2d 100755
--- a/tmp/post_upgrade_command
+++ b/tmp/post_upgrade_command
@@ -30,7 +30,11 @@ case "$OLDKERNEL" in
KERNELTYPE=SMP
;;
*)
- KERNELTYPE=SMP
+ if [ "${PFSENSETYPE}" = "pfSense" ]; then
+ KERNELTYPE=SMP
+ elif [ "${PFSENSETYPE}" = "nanobsd" ]; then
+ KERNELTYPE=WRAP
+ fi
;;
esac
OpenPOWER on IntegriCloud