summaryrefslogtreecommitdiffstats
path: root/usr/local/www/installer
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-19 13:18:55 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-19 13:18:55 -0500
commit611c9b3d4e099f7143459831a0cc975f7883cda1 (patch)
tree0d5ca38c08a223a97d3fde5301a7bcdce61a682b /usr/local/www/installer
parent40f9accf23f697aaacc7b9cae7dbcfe9f67d3631 (diff)
downloadpfsense-611c9b3d4e099f7143459831a0cc975f7883cda1.zip
pfsense-611c9b3d4e099f7143459831a0cc975f7883cda1.tar.gz
Disable encpass when we are not using an encrypted fstype. Alert to the operator that defining an encpass on an encyrpted volume will require a password on each bootup.
Diffstat (limited to 'usr/local/www/installer')
-rw-r--r--usr/local/www/installer/installer.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php
index bdf9608..ea8f0ab 100644
--- a/usr/local/www/installer/installer.php
+++ b/usr/local/www/installer/installer.php
@@ -845,12 +845,16 @@ EOF;
<script type="text/javascript">
\$('contentdiv').appear();
function onfstypeChange() {
- var fstype = \$F('fstype');
- if(fstype.substring(fstype.length - 4) == ".eli") {
- //\$('encpass').disabled = 0;
- alert('NOTE: If you define a disk encryption password you will need to enter it on *EVERY* bootup!');
- } else {
- //\$('encpass').disabled = 1;
+ for(var x = 0; x<99; x++) { //optimize me better
+ if($('fstype' + x)) {
+ var fstype = \$F('fstype' + x);
+ if(fstype.substring(fstype.length - 4) == ".eli") {
+ \$('encpass' + x).disabled = 0;
+ alert('NOTE: If you define a disk encryption password you will need to enter it on *EVERY* bootup!');
+ } else {
+ \$('encpass' + x).disabled = 1;
+ }
+ }
}
}
onfstypeChange();
OpenPOWER on IntegriCloud