From 45b199566b44d7a8019cb5ed8aebdef9eb756a94 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 11 Jun 2006 03:11:59 +0000 Subject: [PATCH] Nuke the console detection code. The bug appears to be gone with the recent banner changes. --- etc/rc.banner | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/etc/rc.banner b/etc/rc.banner index cd01776b9e..a11208a0ac 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'];