summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-09-18 18:49:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-09-18 18:49:11 +0000
commit53549699bcc7266d1ace3a70479e7a811900cae6 (patch)
treea8b849ca1431aee0358540bbb809fba0c256d55d /usr
parent1df27a05f28853397cb756f28df5f73dc87532d2 (diff)
downloadpfsense-53549699bcc7266d1ace3a70479e7a811900cae6.zip
pfsense-53549699bcc7266d1ace3a70479e7a811900cae6.tar.gz
Ask for kernel type if the kernel upgrade type is unknown.
Ticket #1435
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_firmware.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index 66d72a1..f3d112e 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -55,6 +55,9 @@ if ($_POST && !file_exists($d_firmwarelock_path)) {
unset($input_errors);
unset($sig_warning);
+ if($_POST['kerneltype'])
+ system("echo {$_POST['kerneltype']} > /boot/kernel/pfsense_kernel.txt");
+
if (stristr($_POST['Submit'], "Enable"))
$mode = "enable";
else if (stristr($_POST['Submit'], "Disable"))
@@ -107,6 +110,10 @@ if ($_POST && !file_exists($d_firmwarelock_path)) {
}
}
+ if(!file_exists("/boot/kernel/pfsense_kernel.txt")) {
+
+ }
+
/* Check for input errors, firmware locks, warnings, then check for firmware if sig_override is set */
if (!$input_errors && !file_exists($d_firmwarelock_path) && (!$sig_warning || $_POST['sig_override'])) {
if (file_exists("{$g['upload_path']}/firmware.tgz")) {
@@ -182,6 +189,18 @@ print_info_box($sig_warning);
<strong>Firmware image file: </strong>&nbsp;
<input name="ulfile" type="file" class="formfld">
<br><br>
+ <?php
+ if(!file_exists("/boot/kernel/pfsense_kernel.txt")) {
+ if($g['platform'] == "pfSense") {
+ echo "<select name='kerneltype'>'";
+ echo "<option value=''>Uniprocessor kernel</option>";
+ echo "<option value='SMP'>Multiprocessor kernel</option>";
+ echo "<option value='wrap'>Embedded kernel</option>";
+ echo "<option value='wrap'>Developers kernel</option>";
+ echo "</select>";
+ }
+ }
+ ?>
<input name="Submit" type="submit" class="formbtn" value="Upgrade firmware">
<?php endif; else: ?>
<strong>You must reboot the system before you can upgrade the firmware.</strong>
OpenPOWER on IntegriCloud