diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-10-01 21:48:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-10-01 21:48:53 +0000 |
commit | afa829bb99cb406df884d3ffcdb902260ea2b1a3 (patch) | |
tree | 40e935ab967332413f93b06c038d7d8bc8daaa4b /usr | |
parent | c7b2070372d135f31b596a693e8fbe72b9231fb6 (diff) | |
download | pfsense-afa829bb99cb406df884d3ffcdb902260ea2b1a3.zip pfsense-afa829bb99cb406df884d3ffcdb902260ea2b1a3.tar.gz |
* Fix uniprocessor option
* Cleanup text
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_firmware.php | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index f3d112e..8fd965f 100755 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -49,15 +49,19 @@ if(file_exists($d_firmwarelock_path)) { exit; } +if($_POST['kerneltype']) { + if($_POST['kerneltype'] == "single") + system("touch /boot/kernel/pfsense_kernel.txt"); + else + system("echo {$_POST['kerneltype']} > /boot/kernel/pfsense_kernel.txt"); +} + /* Handle manual upgrade */ 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")) @@ -192,14 +196,16 @@ print_info_box($sig_warning); <?php if(!file_exists("/boot/kernel/pfsense_kernel.txt")) { if($g['platform'] == "pfSense") { - echo "<select name='kerneltype'>'"; - echo "<option value=''>Uniprocessor kernel</option>"; + echo "Please select kernel type: "; + echo "<select name='kerneltype'>"; + echo "<option value='single'>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>"; } } + echo "<br><br>"; ?> <input name="Submit" type="submit" class="formbtn" value="Upgrade firmware"> <?php endif; else: ?> |