diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-09-18 18:48:59 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-09-18 18:48:59 +0000 |
commit | ec402ba5714a7d1064ed316bfde3e201d72d61f8 (patch) | |
tree | 1b02714076a448c59d82f0be840a576a0eb1eaab | |
parent | cc582ab7642727566c940ef646ef27d2c5ffce4c (diff) | |
download | pfsense-ec402ba5714a7d1064ed316bfde3e201d72d61f8.zip pfsense-ec402ba5714a7d1064ed316bfde3e201d72d61f8.tar.gz |
Ask for kernel type if the kernel upgrade type is unknown.
Ticket #1435
-rwxr-xr-x | usr/local/www/system_firmware.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index 0f7453c..58a6e20 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")) @@ -186,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> |