aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-12-03 19:30:22 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-12-03 19:30:22 +0000
commit023c1ae731270c572e9653004f3ff637b1d3011f (patch)
tree9fb83ffff767523f5cbac39eef7fa3f391884a79
parent8f5dfa3c84e6ee11cc8286a8defb00531a63770c (diff)
downloadpfsense-packages-023c1ae731270c572e9653004f3ff637b1d3011f.tar.gz
pfsense-packages-023c1ae731270c572e9653004f3ff637b1d3011f.tar.bz2
pfsense-packages-023c1ae731270c572e9653004f3ff637b1d3011f.zip
Add curses driver and show device in dropdown
-rw-r--r--packages/lcdproc/lcdproc.inc24
-rw-r--r--packages/lcdproc/lcdproc.xml6
2 files changed, 27 insertions, 3 deletions
diff --git a/packages/lcdproc/lcdproc.inc b/packages/lcdproc/lcdproc.inc
index b8db64d0..bd6c83e1 100644
--- a/packages/lcdproc/lcdproc.inc
+++ b/packages/lcdproc/lcdproc.inc
@@ -180,10 +180,34 @@
$config_text .= "NewFirmware=yes\n";
$config_text .= "Reboot=yes\n";
break;
+ case "curses":
+ $config_text .= "[{$lcdproc_config[driver]}]\n";
+ $config_text .= "Foreground=blue\n";
+ $config_text .= "Background=cyan\n";
+ $config_text .= "Backlight=red\n";
+ $config_text .= "Size=16x4\n";
+ $config_text .= "TopLeftX=7\n";
+ $config_text .= "TopLeftY=7\n";
+ $config_text .= "UseACS=no\n";
+ break;
+ case "CwLynx":
+ $config_text .= "[{$lcdproc_config[driver]}]\n";
+ $config_text .= "Model=12232\n";
+ $config_text .= "Device={$realport}\n";
+ $config_text .= "Size=20x4\n";
+ $config_text .= "Speed=19200\n";
+ $config_text .= "Reboot=no\n";
+ break;
case "pyramid":
$config_text .= "[{$lcdproc_config[driver]}]\n";
$config_text .= "Device={$realport}\n";
break;
+ case "ea65":
+ $config_text .= "[{$lcdproc_config[driver]}]\n";
+ $config_text .= "Device={$realport}\n";
+ $config_text .= "OffBrightness=0\n";
+ $config_text .= "Brightness=500\n";
+ break;
default:
lcdproc_warn("The chosen lcdproc driver is not a valid choice");
unset($lcdproc_config[driver]);
diff --git a/packages/lcdproc/lcdproc.xml b/packages/lcdproc/lcdproc.xml
index 4066c5b2..90ec1ff2 100644
--- a/packages/lcdproc/lcdproc.xml
+++ b/packages/lcdproc/lcdproc.xml
@@ -46,15 +46,15 @@
</option>
<option>
<value>com2</value>
- <name>Serial Com port 2</name>
+ <name>Serial Com port 2 (/dev/cua1)</name>
</option>
<option>
<value>ucom1</value>
- <name>USB Com port 1</name>
+ <name>USB Com port 1 (/dev/cuaU0)</name>
</option>
<option>
<value>ucom2</value>
- <name>USB Com port 2</name>
+ <name>USB Com port 2 (/dev/cuaU1)</name>
</option>
</options>
<default_value>0</default_value>