Project

General

Profile

« Previous | Next » 

Revision d48927b4

Added by Scott Ullrich over 14 years ago

Supply encpass if needed

View differences:

usr/local/www/installer.php
69 69
	} else {
70 70
		$diskareas = "disk0-part={$fstype} 0 /\n";
71 71
	}
72
	if($encpass)
73
		$diskareaspass = "encpass={$encpass}\n";
72 74
	$config = <<<EOF
73 75
# Sample configuration file for an installation using pc-sysinstall
74 76

  
......
94 96
# the flag "encpass=" should be entered:
95 97
# encpass=mypass
96 98
{$diskareas}
99
{$diskareaspass}
97 100

  
98 101
# Do it now!
99 102
commitDiskLabel
......
363 366
function body_html() {
364 367
	global $g, $fstype;
365 368
	$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
366
	if(strstr($pfSversion, "1.2"))
369
	if(strstr($pfSversion, "1.2")) 
367 370
		$one_two = true;
368
	$pgtitle = "{$g['product_name']}: " . gettext("Installer");
371
	$pgtitle = array("{$g['product_name']}", gettext("Installer"));
369 372
	include("head.inc");
370 373
	echo <<<EOF
371 374
	<body link="#0000CC" vlink="#0000CC" alink="#0000CC">

Also available in: Unified diff