Project

General

Profile

« Previous | Next » 

Revision 62d01a53

Added by Scott Ullrich over 15 years ago

Use /etc/nanosize.txt

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

  
63 61
	// Detect which slice is active and set information.
64 62
	if(strstr($REAL_BOOT_DEVICE, "s1")) {
65 63
		$SLICE="2";
......
97 95

  
98 96
<?php
99 97

  
98
$NANOBSD_SIZE = file_get_contents("/etc/nanosize.txt");
99

  
100 100
if($_POST['bootslice']) {
101 101
	echo <<<EOF
102 102
	 	<div id="loading">

Also available in: Unified diff