diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-06-11 03:11:59 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-06-11 03:11:59 +0000 |
commit | 45b199566b44d7a8019cb5ed8aebdef9eb756a94 (patch) | |
tree | 3a4933415385bcddb8d5945c2c324a6796cf5204 /etc/rc.banner | |
parent | fb66c674e21de918237134d25ef037331c856031 (diff) | |
download | pfsense-45b199566b44d7a8019cb5ed8aebdef9eb756a94.zip pfsense-45b199566b44d7a8019cb5ed8aebdef9eb756a94.tar.gz |
Nuke the console detection code. The bug appears to be gone with the recent banner changes.
Diffstat (limited to 'etc/rc.banner')
-rwxr-xr-x | etc/rc.banner | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/etc/rc.banner b/etc/rc.banner index cd01776..a11208a 100755 --- a/etc/rc.banner +++ b/etc/rc.banner @@ -34,20 +34,6 @@ require_once("config.inc"); require_once("functions.inc"); - if(file_exists("/var/run/lastlogin")) { - $last_login_time = file_get_contents("{$g['varrun_path']}/lastlogin"); - $time_now = time(); - $time_diff = $time_now - $last_login_time; - if($time_diff < 30) { - log_error("Console respawn bug detected. CTRL-C to exit."); - echo "\nPress CTRL-C to get started. ({$time_diff})\n"; - sleep(6600); - } - } - $fd = fopen("{$g['varrun_path']}/lastlogin", "w"); - fwrite($fd, time()); - fclose($fd); - $version = trim(file_get_contents("{$g['etc_path']}/version")); $platform = trim(file_get_contents("{$g['etc_path']}/platform")); $hostname = $config['system']['hostname']; |