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 | |
parent | 746fa9df8f3d3443d82cd26d6717e7b5cf3dc8c1 (diff) |
Fixed a design flaw in luci.model.uci
Diffstat (limited to 'applications/luci-splash')
-rwxr-xr-x | applications/luci-splash/root/usr/bin/luci-splashd | 2 | ||||
-rwxr-xr-x | applications/luci-splash/root/usr/sbin/luci-splash | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/applications/luci-splash/root/usr/bin/luci-splashd b/applications/luci-splash/root/usr/bin/luci-splashd index e8c275209..3e0c938eb 100755 --- a/applications/luci-splash/root/usr/bin/luci-splashd +++ b/applications/luci-splash/root/usr/bin/luci-splashd @@ -4,7 +4,7 @@ require("socket") require("luci.ip") require("luci.model.uci") -luci.model.uci.set_savedir(luci.model.uci.savedir_state) +luci.model.uci.load_state("network") local server = socket.bind("0.0.0.0", arg[1] or 8082) server:settimeout(0, "t") diff --git a/applications/luci-splash/root/usr/sbin/luci-splash b/applications/luci-splash/root/usr/sbin/luci-splash index 0b645fab7..520f87702 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 |