diff options
author | Michele Di Maria <michele@nt2.it> | 2012-02-01 22:22:43 +0100 |
---|---|---|
committer | Michele Di Maria <michele@nt2.it> | 2012-02-01 22:22:43 +0100 |
commit | e7192dee6229c4f17afdcdb0f80b2a8b5aa5a513 (patch) | |
tree | 86751bfeaf3b57ab20c2719a233aa9cb71821454 /config/lcdproc-dev/lcdproc.inc | |
parent | 6ce82bf086b196acf96c62211809cb61a4b239e5 (diff) | |
download | pfsense-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.inc | 12 |
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 */ |