luci-app-olsr: switch to nixio.fs
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
76eb057b2c
commit
2af6fac809
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ You may obtain a copy of the License at
|
|||
local ipv = luci.model.uci.cursor():get_first("olsrd", "olsrd", "IpVersion", "4")
|
||||
|
||||
function write_conf(conf, file)
|
||||
local fs = require "luci.fs"
|
||||
local fs = require "nixio.fs"
|
||||
if fs.access(conf) then
|
||||
luci.http.header("Content-Disposition", "attachment; filename="..file)
|
||||
luci.http.prepare_content("text/plain")
|
||||
|
|
Loading…
Reference in a new issue