summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-11-26 20:54:17 +0000
committerErmal <eri@pfsense.org>2010-11-26 20:54:17 +0000
commit9a7f6731882c850a142bc082ebdfa3a7c321a3de (patch)
treec75df8d282d373085d8bc8b0314174ca3560d09a /usr
parent7a7551569a67ee4150f086acf30c6c59ecda6dcb (diff)
downloadpfsense-9a7f6731882c850a142bc082ebdfa3a7c321a3de.zip
pfsense-9a7f6731882c850a142bc082ebdfa3a7c321a3de.tar.gz
Use php_uname where possible.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/installer.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/installer.php b/usr/local/www/installer.php
index aa3b9c0..68570ac 100644
--- a/usr/local/www/installer.php
+++ b/usr/local/www/installer.php
@@ -645,7 +645,8 @@ EOF;
$custom_txt .= "<tr><td align='right'><b>Filesystem type:</td><td><select name='fstype'>\n";
$custom_txt .= "<option value='UFS'>UFS</option>\n";
$custom_txt .= "<option value='UFS+S'>UFS + Softupdates</option>\n";
- $release = trim(`uname -r | cut -d'.' -f1`);
+ $release = php_uname("r");
+ $release = $release[0];
if($release == "9")
$custom_txt .= "<option value='UFS+J'>UFS + Journaling</option>\n";
if(file_exists("/boot/gptzfsboot"))
@@ -749,4 +750,4 @@ EOF;
end_html();
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud