luci-app-olsr: switch to nixio.fs

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich 2015-01-15 14:55:46 +01:00
parent 76eb057b2c
commit 2af6fac809

View file

@ -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")