aboutsummaryrefslogtreecommitdiffstats
path: root/config/lcdproc-dev/lcdproc.inc
diff options
context:
space:
mode:
authoryylyyl <yangyiliang@gmail.com>2014-09-23 21:48:07 +0800
committeryylyyl <yangyiliang@gmail.com>2014-09-23 21:48:07 +0800
commitee8a91ebd4f7e919db0fc79df25fa164e4d43eb6 (patch)
treeaaae5b4c4db0fc0253eebb35078b5543d1bf79d9 /config/lcdproc-dev/lcdproc.inc
parent5de466966718de28d50e84f5e7a6b4560aaf643f (diff)
downloadpfsense-packages-ee8a91ebd4f7e919db0fc79df25fa164e4d43eb6.tar.gz
pfsense-packages-ee8a91ebd4f7e919db0fc79df25fa164e4d43eb6.tar.bz2
pfsense-packages-ee8a91ebd4f7e919db0fc79df25fa164e4d43eb6.zip
lcd2usb doesn't need Device to be specified, also fix traffic display
Diffstat (limited to 'config/lcdproc-dev/lcdproc.inc')
-rw-r--r--config/lcdproc-dev/lcdproc.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc
index 00768cd7..5664461d 100644
--- a/config/lcdproc-dev/lcdproc.inc
+++ b/config/lcdproc-dev/lcdproc.inc
@@ -308,7 +308,8 @@
$config_text .= "[{$lcdproc_config['driver']}]\n";
$config_text .= "driverpath=/usr/local/lib/lcdproc/\n";
$config_text .= "ConnectionType={$lcdproc_config['connection_type']}\n";
- $config_text .= "Device={$realport}\n";
+ if($realport != "none")
+ $config_text .= "Device={$realport}\n";
$config_text .= "Port=0x378\n";
$config_text .= "Speed=0\n";
$config_text .= "Keypad=yes\n";
@@ -502,7 +503,7 @@ EOD;
restart_service(LCDPROC_SERVICE_NAME);
}
}
- if((! $lcdproc_config['driver']) || ($lcdproc_config['comport'] == "none")) {
+ if((! $lcdproc_config['driver']) || (! $lcdproc_config['comport'])) {
/* no parameters user does not want lcdproc running */
/* lets stop the service and remove the rc file */
if(file_exists(LCDPROC_RCFILE)) {