aboutsummaryrefslogtreecommitdiffstats
path: root/config/lcdproc-dev/lcdproc.inc
diff options
context:
space:
mode:
authorMichele Di Maria <michele@nt2.it>2012-02-01 22:22:43 +0100
committerMichele Di Maria <michele@nt2.it>2012-02-01 22:22:43 +0100
commite7192dee6229c4f17afdcdb0f80b2a8b5aa5a513 (patch)
tree86751bfeaf3b57ab20c2719a233aa9cb71821454 /config/lcdproc-dev/lcdproc.inc
parent6ce82bf086b196acf96c62211809cb61a4b239e5 (diff)
downloadpfsense-packages-e7192dee6229c4f17afdcdb0f80b2a8b5aa5a513.tar.gz
pfsense-packages-e7192dee6229c4f17afdcdb0f80b2a8b5aa5a513.tar.bz2
pfsense-packages-e7192dee6229c4f17afdcdb0f80b2a8b5aa5a513.zip
- Added a 20ms delay between each command sent from the client to LCDproc.
- Better managed errors. Now the client resets the error counter every successful communication session with LCDproc (before was a global counter). The error counter is managed inside the client (lcdproc_client.php). - Because of the above change, now the "client script" (lcdclient.sh) do not cycle anymore.
Diffstat (limited to 'config/lcdproc-dev/lcdproc.inc')
-rw-r--r--config/lcdproc-dev/lcdproc.inc12
1 files changed, 3 insertions, 9 deletions
diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc
index 3d0a7e69..7617e168 100644
--- a/config/lcdproc-dev/lcdproc.inc
+++ b/config/lcdproc-dev/lcdproc.inc
@@ -237,7 +237,7 @@
$config_text .= "User=nobody\n";
$config_text .= "ServerScreen=no\n";
$config_text .= "Foreground=no\n";
- $config_text .= "TitleSpeed=10\n";
+ $config_text .= "TitleSpeed=5\n";
$config_text .= "DriverPath=/usr/local/lib/lcdproc/\n";
$config_text .= "GoodBye=\"Thanks for using\"\n";
$config_text .= "GoodBye=\" {$g['product_name']} \"\n";
@@ -502,14 +502,8 @@
/* generate rc file start and stop */
$client_script = <<<EOD
#!/bin/sh
-# script starts a lcd client and always keeps it active for 3 attemps
-counter=1
-while [ \$counter -le 3 ]
-do
- # loop the client to drive the display
- /usr/local/bin/php -f /usr/local/pkg/lcdproc_client.php
- counter=\$(( \$counter + 1 ))
- sleep 1
+/usr/local/bin/php -f /usr/local/pkg/lcdproc_client.php
+sleep 1
done
EOD;
/* generate rc file start and stop */