git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
f02a333
)
modules/admin-full: since switch port numbers depend on model and current solar cycle...
author
Jo-Philipp Wich
<redacted>
Mon, 19 Mar 2012 21:04:15 +0000
(21:04 +0000)
committer
Jo-Philipp Wich
<redacted>
Mon, 19 Mar 2012 21:04:15 +0000
(21:04 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
patch
|
blob
|
history
diff --git
a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
index f16a7a0c68e2dcea1bbe7e1700864fbb1f543dae..15f227f93df8547f6479656406dad877225d89ee 100644
(file)
--- a/
modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
+++ b/
modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
@@
-256,14
+256,12
@@
m.uci:foreach("network", "switch",
-- Build per-port off/untagged/tagged choice lists.
local pt
- local off = 1
for pt = 0, num_ports - 1 do
local title
if pt == cpu_port then
- off = 0
title = translate("CPU")
else
- title = translatef("Port %d", pt
+ off
)
+ title = translatef("Port %d", pt)
end
local po = s:option(ListValue, tostring(pt), title)
git clone https://git.99rst.org/PROJECT