diff options
author | Steven Barth <steven@midlink.org> | 2008-07-24 13:55:11 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-24 13:55:11 +0000 |
commit | 7384e0e6b77518efa4d113ede46f8c107de6f604 (patch) | |
tree | abe961b734c865ce3965f45585528c1ff39b94bd /libs/sgi-webuci/root | |
parent | f94c7b2c10d11d343c464be707e12c5754728b06 (diff) |
Rewrote host environment targets to work out of the box
Diffstat (limited to 'libs/sgi-webuci/root')
-rw-r--r-- | libs/sgi-webuci/root/usr/lib/boa/luci.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/sgi-webuci/root/usr/lib/boa/luci.lua b/libs/sgi-webuci/root/usr/lib/boa/luci.lua index 5c9531a2e..d0f4323c3 100644 --- a/libs/sgi-webuci/root/usr/lib/boa/luci.lua +++ b/libs/sgi-webuci/root/usr/lib/boa/luci.lua @@ -20,12 +20,13 @@ function init(path) require("luci.dispatcher") require("luci.sgi.webuci") - require("uci") + require("luci.model.uci") if (root ~= '/') then -- Entering dummy mode - uci.set_savedir(root..'/tmp/.uci') - uci.set_confdir(root..'/etc/config') + luci.model.uci.confdir_default = root .. '/etc/config' + luci.model.uci.savedir_state = root .. '/var/state' + uci.set_confdir(luci.model.uci.confdir_default) luci.sys.hostname = function() return "" end luci.sys.loadavg = function() return 0,0,0,0,0 end @@ -35,12 +36,11 @@ function init(path) luci.sys.net.arptable = function() return {} end luci.sys.net.devices = function() return {} end - luci.sys.net.routes = function() return {} end + luci.sys.net.routes = function() return {} end luci.sys.wifi.getiwconfig = function() return {} end luci.sys.wifi.iwscan = function() return {} end luci.sys.user.checkpasswd = function() return true end - luci.http.basic_auth = function() return true end end end |