@Ivymike
i'm ont it, your card is coming from Ansuel GUI, as we know "with bugs"...i found the reason why it doesn't show as enabled, but i don't understand why...the problem is here :
if telnet_available then
local TELNET = proxy.get("uci.telnet.general.enable")
if TELNET and (TELNET[1].value == "1") then
telnet_enable = "Enabled"
else
telnet_enable = "Disabled"
end
end
For some reason the code doesn't get the correct value of "1", however in putty if you do a uci get telnet.general.enable you get "1"...
@eclp
you are changing values in the CHECK part...i'm not sure it's correct, if you want to change a value it should be below in the "operation" part.
i would try this :
{
name = "bridge",
default = false,
description = "Bridge mode",
view = "internet-bridged.lp",
card = "003_internet_bridged.lp",
check = {
{ "uci.network.interface.@wan.proto", "^bridge$"},
{ "uci.wansensing.global.enable", "^1$"},
},
operations = {
{ "uci.network.interface.@wan.proto", "bridge"},
{ "uci.wansensing.global.enable", "0"},
},
},