aboutsummaryrefslogtreecommitdiffstats
path: root/config/lcdproc/lcdproc.inc
diff options
context:
space:
mode:
authorLuiz Gustavo S. Costa <lgcosta@pfsense.org>2011-08-26 12:20:07 -0700
committerLuiz Gustavo S. Costa <lgcosta@pfsense.org>2011-08-26 12:20:07 -0700
commitc587fd97b5baaec9358b50f303326350d1c23088 (patch)
tree3cb687b74cc9d0d0c3b263fdc85a04f2b38385fa /config/lcdproc/lcdproc.inc
parent0a12b0c187dfd965f42037efc77fbc4b971109e5 (diff)
parent432fbd979fdb507f2710e822d5ed6fd2f7919c76 (diff)
downloadpfsense-packages-c587fd97b5baaec9358b50f303326350d1c23088.tar.gz
pfsense-packages-c587fd97b5baaec9358b50f303326350d1c23088.tar.bz2
pfsense-packages-c587fd97b5baaec9358b50f303326350d1c23088.zip
Merge pull request #42 from mdima/master
Commit for LCDProc
Diffstat (limited to 'config/lcdproc/lcdproc.inc')
-rw-r--r--config/lcdproc/lcdproc.inc45
1 files changed, 45 insertions, 0 deletions
diff --git a/config/lcdproc/lcdproc.inc b/config/lcdproc/lcdproc.inc
index 84c5765c..b9cd5770 100644
--- a/config/lcdproc/lcdproc.inc
+++ b/config/lcdproc/lcdproc.inc
@@ -106,6 +106,15 @@
case "lpt1":
continue;
break;
+ case "ugen0.2":
+ continue;
+ break;
+ case "ugen1.2":
+ continue;
+ break;
+ case "ugen2.2":
+ continue;
+ break;
default:
$input_errors[] = "The chosen com port is not valid";
break;
@@ -178,6 +187,15 @@
case "lpt1":
$realport = "/dev/lpt0";
break;
+ case "ugen0.2":
+ $realport = "/dev/ugen0.2";
+ break;
+ case "ugen1.2":
+ $realport = "/dev/ugen1.2";
+ break;
+ case "ugen2.2":
+ $realport = "/dev/ugen2.2";
+ break;
default:
lcdproc_warn("The selected com port is not valid!");
return;
@@ -211,6 +229,16 @@
/* lcdproc default driver definitions */
switch($lcdproc_config[driver]) {
+ case "SureElec":
+ $config_text .= "[{$lcdproc_config['driver']}]\n";
+ $config_text .= "driverpath =/usr/local/lib/lcdproc/\n";
+ $config_text .= "Device={$realport}\n";
+ $config_text .= "Size={$lcdproc_config['size']}\n";
+ $config_text .= "Edition=2\n";
+ $config_text .= "Contrast=200\n";
+ $config_text .= "Brightness=480\n";
+ $config_text .= "Speed=19200\n";
+ break;
case "nexcom":
$config_text .= "[{$lcdproc_config['driver']}]\n";
$config_text .= "driverpath =/usr/local/lib/lcdproc/\n";
@@ -222,6 +250,23 @@
$config_text .= "Device={$realport}\n";
$config_text .= "Speed=9600\n";
break;
+ case "picolcd":
+ $config_text .= "[{$lcdproc_config['driver']}]\n";
+ $config_text .= "driverpath=/usr/local/lib/lcdproc/\n";
+ $config_text .= "Device={$realport}\n";
+ $config_text .= "Size={$lcdproc_config['size']}\n";
+ $config_text .= "KeyTimeout=500\n";
+ $config_text .= "Brightness=1000\n";
+ $config_text .= "Blacklight_Timer=60\n";
+ $config_text .= "Contrast=1000\n";
+ $config_text .= "Keylights=on\n";
+ $config_text .= "Key0Light=on\n";
+ $config_text .= "Key1Light=off\n";
+ $config_text .= "Key2Light=off\n";
+ $config_text .= "Key3Light=off\n";
+ $config_text .= "Key4Light=off\n";
+ $config_text .= "Key5Light=off\n";
+ break;
case "CFontz":
$config_text .= "[{$lcdproc_config['driver']}]\n";
$config_text .= "Device={$realport}\n";