2008-09-16 11:16:04 +00:00
|
|
|
--[[
|
|
|
|
|
|
|
|
LuCI p910nd
|
|
|
|
(c) 2008 Yanira <forum-2008@email.de>
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
|
|
|
|
]]--
|
|
|
|
|
|
|
|
local uci = luci.model.uci.cursor_state()
|
|
|
|
|
2009-10-31 15:54:11 +00:00
|
|
|
m = Map("p910nd", translate("p910nd - Printer server"),
|
|
|
|
translatef("First you have to install the packages to get support for USB (kmod-usb-printer) or parallel port (kmod-lp)."))
|
2008-09-16 11:16:04 +00:00
|
|
|
|
2009-10-31 15:54:11 +00:00
|
|
|
s = m:section(TypedSection, "p910nd", translate("Settings"))
|
2008-09-16 11:16:04 +00:00
|
|
|
s.addremove = true
|
|
|
|
s.anonymous = true
|
|
|
|
|
2008-09-29 19:14:20 +00:00
|
|
|
s:option(Flag, "enabled", translate("enable"))
|
2008-09-16 11:16:04 +00:00
|
|
|
|
2009-10-31 15:54:11 +00:00
|
|
|
s:option(Value, "device", translate("Device")).rmempty = true
|
2008-09-16 11:16:04 +00:00
|
|
|
|
2011-10-16 14:08:39 +00:00
|
|
|
p = s:option(ListValue, "port", translate("Port"), translate("TCP listener port."))
|
|
|
|
p.rmempty = true
|
|
|
|
for i=0,9 do
|
|
|
|
p:value(i, 9100+i)
|
|
|
|
end
|
2008-09-16 11:16:04 +00:00
|
|
|
|
2009-10-31 15:54:11 +00:00
|
|
|
s:option(Flag, "bidirectional", translate("Bidirectional mode"))
|
2008-09-16 11:16:04 +00:00
|
|
|
|
|
|
|
return m
|