aboutsummaryrefslogtreecommitdiffstats
path: root/packages/lcdproc/lcdproc.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-11-27 17:50:14 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-11-27 17:50:14 +0000
commit1e599c3df35baa06ed92ed33a90cc6d08f4d6358 (patch)
treea89b249a78a0d7c193bf8ca360e34244d3b9cf30 /packages/lcdproc/lcdproc.inc
parent3379dcf349cbc2cff006f5d561bb4d7ec28a825b (diff)
downloadpfsense-packages-1e599c3df35baa06ed92ed33a90cc6d08f4d6358.tar.gz
pfsense-packages-1e599c3df35baa06ed92ed33a90cc6d08f4d6358.tar.bz2
pfsense-packages-1e599c3df35baa06ed92ed33a90cc6d08f4d6358.zip
Add a few lcdproc drivers
Diffstat (limited to 'packages/lcdproc/lcdproc.inc')
-rw-r--r--packages/lcdproc/lcdproc.inc50
1 files changed, 48 insertions, 2 deletions
diff --git a/packages/lcdproc/lcdproc.inc b/packages/lcdproc/lcdproc.inc
index 4b600a49..b8db64d0 100644
--- a/packages/lcdproc/lcdproc.inc
+++ b/packages/lcdproc/lcdproc.inc
@@ -140,8 +140,54 @@
$config_text .= "DownKey=Down\n";
/* lcdproc default driver definitions */
- $config_text .= "[pyramid]\n";
- $config_text .= "Device={$realport}\n";
+ switch($lcdproc_config[driver]) {
+ case "bayrad":
+ $config_text .= "[{$lcdproc_config[driver]}]\n";
+ $config_text .= "Device={$realport}\n";
+ $config_text .= "Speed=9600\n";
+ break;
+ case "CFontz":
+ $config_text .= "[{$lcdproc_config[driver]}]\n";
+ $config_text .= "Device={$realport}\n";
+ $config_text .= "Size=20x4\n";
+ $config_text .= "Contrast=350\n";
+ $config_text .= "Brightness=1000\n";
+ $config_text .= "OffBrightness=0\n";
+ $config_text .= "Speed=9600\n";
+ $config_text .= "NewFirmware=no\n";
+ $config_text .= "Reboot=no\n";
+ break;
+ case "CFontz633":
+ $config_text .= "[{$lcdproc_config[driver]}]\n";
+ $config_text .= "Device={$realport}\n";
+ $config_text .= "Size=16x2\n";
+ $config_text .= "Contrast=350\n";
+ $config_text .= "Brightness=1000\n";
+ $config_text .= "OffBrightness=50\n";
+ $config_text .= "Speed=19200\n";
+ $config_text .= "NewFirmware=yes\n";
+ $config_text .= "Reboot=yes\n";
+ break;
+ case "CFontzPacket":
+ $config_text .= "[{$lcdproc_config[driver]}]\n";
+ $config_text .= "Device={$realport}\n";
+ $config_text .= "Model=635\n";
+ $config_text .= "Size=20x4\n";
+ $config_text .= "Contrast=350\n";
+ $config_text .= "Brightness=1000\n";
+ $config_text .= "OffBrightness=50\n";
+ $config_text .= "Speed=115200\n";
+ $config_text .= "NewFirmware=yes\n";
+ $config_text .= "Reboot=yes\n";
+ break;
+ case "pyramid":
+ $config_text .= "[{$lcdproc_config[driver]}]\n";
+ $config_text .= "Device={$realport}\n";
+ break;
+ default:
+ lcdproc_warn("The chosen lcdproc driver is not a valid choice");
+ unset($lcdproc_config[driver]);
+ }
/* generate rc file start and stop */
$stop = <<<EOD