diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-09-18 18:49:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-09-18 18:49:11 +0000 |
commit | 53549699bcc7266d1ace3a70479e7a811900cae6 (patch) | |
tree | a8b849ca1431aee0358540bbb809fba0c256d55d /usr | |
parent | 1df27a05f28853397cb756f28df5f73dc87532d2 (diff) | |
download | pfsense-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-x | usr/local/www/system_firmware.php | 19 |
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> <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> |