summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-04-04 13:28:28 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-04-04 13:28:28 -0400
commit379ab9a5296f929ce399095322176b75909eac30 (patch)
treed05c719b3f24959ba499ba1a3dbfdf90c45b7ec6 /etc
parente9c593bd2de2211e8e034becb3653df20feedcb3 (diff)
downloadpfsense-379ab9a5296f929ce399095322176b75909eac30.zip
pfsense-379ab9a5296f929ce399095322176b75909eac30.tar.gz
Use $g['factory_shipped_password']
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.initial.password5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/rc.initial.password b/etc/rc.initial.password
index d944546..77d4740 100755
--- a/etc/rc.initial.password
+++ b/etc/rc.initial.password
@@ -31,6 +31,7 @@
*/
/* parse the configuration and include all functions used below */
+ require_once("globals.inc");
require_once("config.inc");
require_once("functions.inc");
@@ -38,7 +39,7 @@
echo <<<EOD
-The webGUI password will be reset to the default (which is 'pfsense').
+The webGUI password will be reset to the default (which is '{$g['factory_shipped_password']}').
Do you want to proceed [y|n]?
EOD;
@@ -46,7 +47,7 @@ EOD;
if (strcasecmp(chop(fgets($fp)), "y") == 0) {
$config['system']['username'] = "admin";
- $config['system']['password'] = crypt("pfsense");
+ $config['system']['password'] = crypt($g['factory_shipped_password']);
write_config("password changed from console menu");
system_password_configure();
OpenPOWER on IntegriCloud