Project

General

Profile

« Previous | Next » 

Revision b000d606

Added by Scott Ullrich over 15 years ago

Output NanoBSD image size

View differences:

usr/local/www/diag_nanobsd.php
58 58
	$REAL_BOOT_DEVICE=trim(`/sbin/glabel list | /usr/bin/grep -B2 ufs/{$BOOT_DEVICE} | /usr/bin/head -n 1 | /usr/bin/cut -f3 -d' '`);
59 59
	$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`);
60 60

  
61
	$NANOBSD_SIZE = trim(`/sbin/fdisk ${COMPLETE_PATH} | /usr/bin/grep Meg | /usr/bin/awk '{ print $5 }' | /usr/bin/cut -d"(" -f2`);
62

  
61 63
	// Detect which slice is active and set information.
62 64
	if(strstr($REAL_BOOT_DEVICE, "s1")) {
63 65
		$SLICE="2";
......
202 204
					<tr>
203 205
						<td colspan="2" valign="top" class="listtopic">Bootup information</td>
204 206
					</tr>
207
					<tr>						
208
						<td width="22%" valign="top" class="vncell">NanoBSD Image size</td>
209
						<td width="78%" class="vtable">
210
							<?php echo format_bytes($NANOBSD_SIZE); ?>
211
						</td>
212
					</tr>
205 213
					<tr>
206 214
						<td width="22%" valign="top" class="vncell">Bootup</td>
207 215
						<td width="78%" class="vtable">

Also available in: Unified diff