summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_nanobsd.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@G5.homeunix.net>2009-10-10 21:40:12 -0400
committerScott Ullrich <sullrich@G5.homeunix.net>2009-10-10 21:40:12 -0400
commit62d01a53f67dfd8770a9e99aaffdd3bb980589f3 (patch)
tree0bcd343ed72608febff0600e99e4d1654b6e53fa /usr/local/www/diag_nanobsd.php
parentb000d6063f71c32c68f4a3a7dcac3dfbf2601278 (diff)
downloadpfsense-62d01a53f67dfd8770a9e99aaffdd3bb980589f3.zip
pfsense-62d01a53f67dfd8770a9e99aaffdd3bb980589f3.tar.gz
Use /etc/nanosize.txt
Diffstat (limited to 'usr/local/www/diag_nanobsd.php')
-rwxr-xr-xusr/local/www/diag_nanobsd.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_nanobsd.php b/usr/local/www/diag_nanobsd.php
index f7c7881..478cd7d 100755
--- a/usr/local/www/diag_nanobsd.php
+++ b/usr/local/www/diag_nanobsd.php
@@ -58,8 +58,6 @@ function detect_slice_info() {
$REAL_BOOT_DEVICE=trim(`/sbin/glabel list | /usr/bin/grep -B2 ufs/{$BOOT_DEVICE} | /usr/bin/head -n 1 | /usr/bin/cut -f3 -d' '`);
$BOOT_DRIVE=trim(`/sbin/glabel list | /usr/bin/grep -B2 ufs/pfsense | /usr/bin/head -n 1 | /usr/bin/cut -f3 -d' ' | /usr/bin/cut -d's' -f1`);
- $NANOBSD_SIZE = trim(`/sbin/fdisk ${COMPLETE_PATH} | /usr/bin/grep Meg | /usr/bin/awk '{ print $5 }' | /usr/bin/cut -d"(" -f2`);
-
// Detect which slice is active and set information.
if(strstr($REAL_BOOT_DEVICE, "s1")) {
$SLICE="2";
@@ -97,6 +95,8 @@ detect_slice_info();
<?php
+$NANOBSD_SIZE = file_get_contents("/etc/nanosize.txt");
+
if($_POST['bootslice']) {
echo <<<EOF
<div id="loading">
OpenPOWER on IntegriCloud