summaryrefslogtreecommitdiffhomepage
path: root/core/src
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-04-22 14:37:20 +0000
committerSteven Barth <steven@midlink.org>2008-04-22 14:37:20 +0000
commit7eb6eebf51c300d6e3f71faae520d461b6babe7d (patch)
tree8bcfb75a033f73514c73a24a1b94241cd0e8d2bc /core/src
parent007b82885fbc8f8adf7dfe99c510f2d478e6fa59 (diff)
* Fixed a bug in CBI throwing an error if a config section gets deleted
* Fixed automatic restart of olsrd while applying OLSR configuration
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ffluci/cbi.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ffluci/cbi.lua b/core/src/ffluci/cbi.lua
index 435977a172..f09d48ad7a 100644
--- a/core/src/ffluci/cbi.lua
+++ b/core/src/ffluci/cbi.lua
@@ -178,6 +178,11 @@ function Map.del(self, section, option)
self.ucidata[section][option] = nil
else
self.ucidata[section] = nil
+ for i, k in ipairs(self.ucidata[".order"]) do
+ if section == k then
+ table.remove(self.ucidata[".order"], i)
+ end
+ end
end
end
return stat