diff options
author | mdima <michele@nt2.it> | 2011-08-26 20:39:13 +0200 |
---|---|---|
committer | mdima <michele@nt2.it> | 2011-08-26 20:39:13 +0200 |
commit | 432fbd979fdb507f2710e822d5ed6fd2f7919c76 (patch) | |
tree | 3cb687b74cc9d0d0c3b263fdc85a04f2b38385fa /config/lcdproc/lcdproc.inc | |
parent | 0a12b0c187dfd965f42037efc77fbc4b971109e5 (diff) | |
download | pfsense-packages-432fbd979fdb507f2710e822d5ed6fd2f7919c76.tar.gz pfsense-packages-432fbd979fdb507f2710e822d5ed6fd2f7919c76.tar.bz2 pfsense-packages-432fbd979fdb507f2710e822d5ed6fd2f7919c76.zip |
Committed the changes from rcs.pfsense.org and added picolcd drivers and configurations.
Diffstat (limited to 'config/lcdproc/lcdproc.inc')
-rw-r--r-- | config/lcdproc/lcdproc.inc | 45 |
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"; |