diff options
author | Steven Barth <steven@midlink.org> | 2008-08-17 10:20:36 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-17 10:20:36 +0000 |
commit | 75d4cca7ae10a39d9787afd5f1c2f14800491acd (patch) | |
tree | d78aa1fec1690510ed723f6c8433f71fda709e28 /applications/luci-splash/root/usr/sbin | |
parent | 746fa9df8f3d3443d82cd26d6717e7b5cf3dc8c1 (diff) |
Fixed a design flaw in luci.model.uci
Diffstat (limited to 'applications/luci-splash/root/usr/sbin')
-rwxr-xr-x | applications/luci-splash/root/usr/sbin/luci-splash | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-splash/root/usr/sbin/luci-splash b/applications/luci-splash/root/usr/sbin/luci-splash index 0b645fab75..520f877024 100755 --- a/applications/luci-splash/root/usr/sbin/luci-splash +++ b/applications/luci-splash/root/usr/sbin/luci-splash @@ -5,7 +5,7 @@ require("luci.util") require("luci.model.uci") -- Init state session -luci.model.uci.set_savedir(luci.model.uci.savedir_state) +luci.model.uci.load_state("luci_splash") local uci = luci.model.uci @@ -66,7 +66,7 @@ function add_lease(mac) }) add_rule(mac) - uci.save() + uci.save_state("luci_splash") end @@ -87,7 +87,7 @@ function remove_lease(mac) uci.delete("luci_splash", j) end - uci.save() + uci.save_state("luci_splash") end @@ -156,7 +156,7 @@ function sync() local leasetime = tonumber(uci.get("luci_splash", "general", "leasetime")) * 3600 -- Clean state file - uci.load("luci_splash") + uci.load_state("luci_splash") uci.revert("luci_splash") @@ -185,7 +185,7 @@ function sync() end end - uci.save("luci_splash") + uci.save_state("luci_splash") end main(arg)
\ No newline at end of file |