modules/admin-full: also increase number of ports if cpu port is 8

This commit is contained in:
Jo-Philipp Wich 2013-04-11 17:32:24 +00:00
parent c5557fc90b
commit ae2e8c99b1

View file

@ -28,8 +28,8 @@ m.uci:foreach("network", "switch",
local min_vid = 0
local max_vid = 16
local num_vlans = 16
local num_ports = 6
local cpu_port = tonumber(fs.readfile("/proc/switch/eth0/cpuport") or 5)
local num_ports = cpu_port + 1
local switch_title
local enable_vlan4k = false