diff --git a/usr/local/www/diag_nanobsd.php b/usr/local/www/diag_nanobsd.php index 8dcf9992e7..95f4d96682 100755 --- a/usr/local/www/diag_nanobsd.php +++ b/usr/local/www/diag_nanobsd.php @@ -46,6 +46,7 @@ $BOOT_DEVICE=trim(`/sbin/mount | /usr/bin/grep pfsense | /usr/bin/cut -d'/' -f4 $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`); +// Detect which slice is active and set information. if(strstr($REAL_BOOT_DEVICE, "s1")) { $SLICE="2"; $OLDSLICE="1"; @@ -69,14 +70,16 @@ if(strstr($REAL_BOOT_DEVICE, "s1")) { ?> "> - + + - Setting slice, please wait... + + Setting slice information, please wait...

  EOF; @@ -100,7 +103,8 @@ if($_POST['destslice']) { echo << - Duplicaating slice, please wait... + + Duplicaating slice. Please wait, this will take a moment...

  EOF; @@ -227,6 +231,7 @@ if ($savemsg) "; echo "$('loading').innerHTML = '';"; echo "";