aboutsummaryrefslogtreecommitdiffstats
path: root/config/lcdproc-dev/lcdproc.inc
diff options
context:
space:
mode:
authorMichele Di Maria <michele@nt2.it>2012-01-23 20:34:01 +0100
committerMichele Di Maria <michele@nt2.it>2012-01-23 20:34:01 +0100
commitcc5e67b87b3acda63156bcd135699445a84fadfb (patch)
treec3044e48b9b31370834c25f7582ee96b46932d81 /config/lcdproc-dev/lcdproc.inc
parent21bccd9bd78f4d1052693972959cae7c51f78e3d (diff)
downloadpfsense-packages-cc5e67b87b3acda63156bcd135699445a84fadfb.tar.gz
pfsense-packages-cc5e67b87b3acda63156bcd135699445a84fadfb.tar.bz2
pfsense-packages-cc5e67b87b3acda63156bcd135699445a84fadfb.zip
- Fix the uptime screen
- In the settings, "Enable LCDproc" becomes "Enable LCDproc at startup" - Added "After Install Info" message - Limited the client loop to three times. After three errors connecting to the LCDd service the client will end
Diffstat (limited to 'config/lcdproc-dev/lcdproc.inc')
-rw-r--r--config/lcdproc-dev/lcdproc.inc16
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