diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-08-01 18:03:30 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-08-01 18:03:30 -0400 |
commit | 429650edb7790154035d668ec12ccc3009055236 (patch) | |
tree | afd4974651ddcd12b495461b95ea3b47e5b74219 | |
parent | 1a99877d5747c3efd0a3977d8ced611e7120673e (diff) | |
download | pfsense-429650edb7790154035d668ec12ccc3009055236.zip pfsense-429650edb7790154035d668ec12ccc3009055236.tar.gz |
Show all log contents and automatically scroll to end of textarea
-rw-r--r-- | usr/local/www/installer.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/installer.php b/usr/local/www/installer.php index 5737679..5682dc0 100644 --- a/usr/local/www/installer.php +++ b/usr/local/www/installer.php @@ -127,10 +127,11 @@ function update_installer_status() { // Ensure status files exist if(!file_exists("/tmp/installer_installer_running")) touch("/tmp/installer_installer_running"); - $status = `tail -n30 /tmp/.pc-sysinstall/pc-sysinstall.log`; + $status = `cat /tmp/.pc-sysinstall/pc-sysinstall.log`; $status = str_replace("\n", "\\n", $status); $status = str_replace("\n", "\\r", $status); echo "this.document.forms[0].installeroutput.value='$status';\n"; + echo "this.document.forms[0].installeroutput.scrollTop = this.document.forms[0].installeroutput.scrollHeight;\n"; // Find out installer progress $progress = "5"; if(strstr($status, "Running: dd")) |