Backport scheme and uci fixes

This commit is contained in:
Steven Barth 2008-09-14 19:12:23 +00:00
parent e81501aed4
commit 1932ef3294
4 changed files with 5 additions and 7 deletions

View file

@ -77,7 +77,7 @@ function Cursor.delete_all(self, config, stype, comparator)
local tbl = comparator
comparator = function(section)
for k, v in pairs(tbl) do
if not section[k] == v then
if section[k] ~= v then
return false
end
end

View file

@ -20,7 +20,6 @@ config variable
option name 'ifname'
option title 'Physical interface'
option section 'network.interface'
option required true
config variable
option name 'macaddr'

View file

@ -25,7 +25,6 @@ config variable
option name 'channel'
option section 'wireless.wifi-device'
option title 'Channel'
option datatype uint
config variable
option name 'mode'

View file

@ -16,25 +16,25 @@ config settings wizard
config fw_rule http
option source freifunk
option src freifunk
option target ACCEPT
option proto tcp
option dest_port 80
config fw_rule https
option source freifunk
option src freifunk
option target ACCEPT
option proto tcp
option dest_port 443
config fw_rule ssh
option source freifunk
option src freifunk
option target ACCEPT
option proto tcp
option dest_port 22
config fw_rule olsr
option source freifunk
option src freifunk
option target ACCEPT
option proto udp
option dest_port 698