diff options
author | marcelloc <marcellocoutinho@gmail.com> | 2012-02-03 18:49:20 -0200 |
---|---|---|
committer | marcelloc <marcellocoutinho@gmail.com> | 2012-02-03 18:49:20 -0200 |
commit | 93c0a7834e47a78065623d5b5b8620b02f06828b (patch) | |
tree | 5c93756d6f1cff4633bf1dabb1a5d6bfac5ebeff /config/lcdproc-dev/lcdproc.inc | |
parent | 3ef5df94a33fd5619126eecc81ce1afd9b8b1b95 (diff) | |
parent | 5f0b221e5ec08527319196cf1f5eac71e5a88950 (diff) | |
download | pfsense-packages-93c0a7834e47a78065623d5b5b8620b02f06828b.tar.gz pfsense-packages-93c0a7834e47a78065623d5b5b8620b02f06828b.tar.bz2 pfsense-packages-93c0a7834e47a78065623d5b5b8620b02f06828b.zip |
Merge branch 'master' of https://github.com/bsdperimeter/pfsense-packages
Diffstat (limited to 'config/lcdproc-dev/lcdproc.inc')
-rw-r--r-- | config/lcdproc-dev/lcdproc.inc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc index 3d0a7e69..0f40be53 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 */ @@ -518,6 +512,10 @@ if [ `ps auxw |awk '/lcdclient.s[h]/ {print $2}'| wc -l` != 0 ]; then ps auxw |awk '/lcdclient.s[h]/ {print $2}'|xargs kill -9 sleep 1 fi +if [ `ps auxw |awk '/lcdproc_client.ph[p]/ {print $2}'| wc -l` != 0 ]; then + ps auxw |awk '/lcdproc_client.ph[p]/ {print $2}'|xargs kill -9 + sleep 1 +fi if [ `ps auxw |awk '/LCD[d]/ {print $2}'| wc -l` != 0 ]; then ps auxw |awk '/LCD[d]/ {print $2}'|xargs kill -9 sleep 1 |