diff options
author | Jim P <jim@pingle.org> | 2012-01-23 12:47:22 -0800 |
---|---|---|
committer | Jim P <jim@pingle.org> | 2012-01-23 12:47:22 -0800 |
commit | c2d8c847b872cc0573e9593f81b7c6d4f1f4c75b (patch) | |
tree | c3044e48b9b31370834c25f7582ee96b46932d81 /config/lcdproc-dev/lcdproc.inc | |
parent | 21bccd9bd78f4d1052693972959cae7c51f78e3d (diff) | |
parent | cc5e67b87b3acda63156bcd135699445a84fadfb (diff) | |
download | pfsense-packages-c2d8c847b872cc0573e9593f81b7c6d4f1f4c75b.tar.gz pfsense-packages-c2d8c847b872cc0573e9593f81b7c6d4f1f4c75b.tar.bz2 pfsense-packages-c2d8c847b872cc0573e9593f81b7c6d4f1f4c75b.zip |
Merge pull request #204 from mdima/master
Some changes / requests from the forum
Diffstat (limited to 'config/lcdproc-dev/lcdproc.inc')
-rw-r--r-- | config/lcdproc-dev/lcdproc.inc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc index 5971f61f..3d0a7e69 100644 --- a/config/lcdproc-dev/lcdproc.inc +++ b/config/lcdproc-dev/lcdproc.inc @@ -2,7 +2,7 @@ /* $Id$ */ /* lcdproc.inc - Copyright (C) 2007 Seth Mos <seth.mos@dds.nl> + Copyright (C) 2007 Seth Mos <seth.mos@xs4all.nl> All rights reserved. Redistribution and use in source and binary forms, with or without @@ -237,6 +237,7 @@ $config_text .= "User=nobody\n"; $config_text .= "ServerScreen=no\n"; $config_text .= "Foreground=no\n"; + $config_text .= "TitleSpeed=10\n"; $config_text .= "DriverPath=/usr/local/lib/lcdproc/\n"; $config_text .= "GoodBye=\"Thanks for using\"\n"; $config_text .= "GoodBye=\" {$g['product_name']} \"\n"; @@ -501,23 +502,24 @@ /* generate rc file start and stop */ $client_script = <<<EOD #!/bin/sh -# script starts a lcd client and always keeps it active. +# script starts a lcd client and always keeps it active for 3 attemps counter=1 -while [ "\$counter" -ne 0 ] +while [ \$counter -le 3 ] do # loop the client to drive the display - /usr/local/bin/php -f /usr/local/pkg/lcdproc_client.php + /usr/local/bin/php -f /usr/local/pkg/lcdproc_client.php + counter=\$(( \$counter + 1 )) sleep 1 done EOD; /* generate rc file start and stop */ $stop = <<<EOD if [ `ps auxw |awk '/lcdclient.s[h]/ {print $2}'| wc -l` != 0 ]; then - ps auxw |awk '/lcdclient.s[h]/ {print $2}'|xargs kill + ps auxw |awk '/lcdclient.s[h]/ {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 + ps auxw |awk '/LCD[d]/ {print $2}'|xargs kill -9 sleep 1 fi EOD; @@ -586,4 +588,4 @@ EOD; } return $returnvalue; } -?> +?>
\ No newline at end of file |