diff options
-rw-r--r-- | core/contrib/uci/luci | 2 | ||||
-rw-r--r-- | core/src/ffluci/cbi.lua | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/core/contrib/uci/luci b/core/contrib/uci/luci index 7cc08215af..10a05bdeea 100644 --- a/core/contrib/uci/luci +++ b/core/contrib/uci/luci @@ -17,7 +17,7 @@ config extern flash_keep config event uci_oncommit option network "/etc/init.d/network restart" option wireless "/etc/init.d/network restart" - option olsrd "/etc/init.d/olsrd restart" + option olsr "/etc/init.d/olsrd restart" option dhcp "/etc/init.d/dnsmasq restart" option luci_fw "/etc/init.d/luci_fw restart" option dropbear "/etc/init.d/dropbear restart" 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 |