summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-splash')
-rwxr-xr-xapplications/luci-splash/root/usr/bin/luci-splashd2
-rwxr-xr-xapplications/luci-splash/root/usr/sbin/luci-splash10
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