summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc14
1 files changed, 8 insertions, 6 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 4af5559..a80cbe9 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1004,7 +1004,12 @@ function reload_all_sync() {
mwexec("/bin/rm {$g['tmp_path']}/reload*");
}
-function auto_login($status) {
+function auto_login() {
+ global $config;
+
+ if(isset($config['system']['disableconsolemenu']))
+ return;
+
$gettytab = file_get_contents("/etc/gettytab");
$getty_split = split("\n", $gettytab);
conf_mount_rw();
@@ -1087,11 +1092,8 @@ function setup_serial_port() {
}
}
fclose($fd);
- if(isset($config['system']['disableconsolemenu'])) {
- auto_login(false);
- } else {
- auto_login(true);
- }
+ auto_login();
+
conf_mount_ro();
return;
}
OpenPOWER on IntegriCloud