summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/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 bb09fba..abcb3c8 100644
--- a/usr/local/www/diag_nanobsd.php
+++ b/usr/local/www/diag_nanobsd.php
@@ -122,8 +122,6 @@ EOF;
$ABOOTFLASH="{$BOOT_DRIVE}s{$AOLDSLICE}";
}
- $NANOBSD_SIZE = file_get_contents("/etc/nanosize.txt");
-
conf_mount_rw();
exec("sysctl kern.geom.debugflags=16");
exec("gpart set -a active -i {$ASLICE} {$BOOT_DRIVE}");
@@ -144,6 +142,8 @@ EOF;
detect_slice_info();
}
+$NANOBSD_SIZE = file_get_contents("/etc/nanosize.txt");
+
if($_POST['destslice']) {
echo <<<EOF
OpenPOWER on IntegriCloud