summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-10-01 21:48:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-10-01 21:48:53 +0000
commitafa829bb99cb406df884d3ffcdb902260ea2b1a3 (patch)
tree40e935ab967332413f93b06c038d7d8bc8daaa4b /usr
parentc7b2070372d135f31b596a693e8fbe72b9231fb6 (diff)
downloadpfsense-afa829bb99cb406df884d3ffcdb902260ea2b1a3.zip
pfsense-afa829bb99cb406df884d3ffcdb902260ea2b1a3.tar.gz
* Fix uniprocessor option * Cleanup text
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_firmware.php16
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: ?>
OpenPOWER on IntegriCloud