diff options
author | Renato Botelho <garga@pfSense.org> | 2013-09-18 03:08:51 -0700 |
---|---|---|
committer | Renato Botelho <garga@pfSense.org> | 2013-09-18 03:08:51 -0700 |
commit | a93584129f8aae3a230264beac4882186f2eb1a3 (patch) | |
tree | 9ba5bd3424c8b4eb54a9d2c03878d40bd6066360 /config/lcdproc-dev | |
parent | 39037e3fa7d0cc0f8bd5f5173b47edd0d21f381f (diff) | |
parent | fff8436e82ee25da2e125307668ed654dca9077d (diff) | |
download | pfsense-packages-a93584129f8aae3a230264beac4882186f2eb1a3.tar.gz pfsense-packages-a93584129f8aae3a230264beac4882186f2eb1a3.tar.bz2 pfsense-packages-a93584129f8aae3a230264beac4882186f2eb1a3.zip |
Merge pull request #486 from voyagertm/patch-2
Update lcdproc.inc
Diffstat (limited to 'config/lcdproc-dev')
-rw-r--r-- | config/lcdproc-dev/lcdproc.inc | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc index 1436c07d..8b3ce28f 100644 --- a/config/lcdproc-dev/lcdproc.inc +++ b/config/lcdproc-dev/lcdproc.inc @@ -81,6 +81,7 @@ case "lpt1": case "ugen0.2": case "ugen1.2": + case "ugen1.3"; case "ugen2.2": continue; break; @@ -177,6 +178,9 @@ case "ugen1.2": $realport = "/dev/ugen1.2"; break; + case "ugen1.3": + $realport = "/dev/ugen1.3"; + break; case "ugen2.2": $realport = "/dev/ugen2.2"; break; @@ -303,9 +307,11 @@ case "hd44780": $config_text .= "[{$lcdproc_config['driver']}]\n"; $config_text .= "driverpath=/usr/local/lib/lcdproc/\n"; - $config_text .= "ConnectionType=lcd2usb\n"; + $config_text .= "ConnectionType={$lcdproc_config['connection_type']}\n"; + $config_text .= "Device={$realport}\n"; + $config_text .= "Port=0x378\n"; $config_text .= "Speed=0\n"; - $config_text .= "Keypad=no\n"; + $config_text .= "Keypad=yes\n"; $config_text .= set_lcd_value("contrast", 1000, 850); $config_text .= set_lcd_value("brightness", 1000, 800); $config_text .= set_lcd_value("offbrightness", 1000, 0); @@ -315,6 +321,16 @@ $config_text .= "DelayMult=1\n"; $config_text .= "DelayBus=true\n"; $config_text .= "Size={$lcdproc_config['size']}\n"; + if ($lcdproc_config[connection_type] == "winamp") + { + $config_text .= "KeyDirect_1=Enter\n"; + $config_text .= "KeyDirect_2=Up\n"; + $config_text .= "KeyDirect_3=Down\n"; + $config_text .= "KeyDirect_4=Escape\n"; + } + else + { + } break; case "icp_a106": $config_text .= "[{$lcdproc_config['driver']}]\n"; @@ -531,4 +547,4 @@ EOD; } return $returnvalue; } -?>
\ No newline at end of file +?> |