luci-app-olsr: switch to nixio.fs
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 15 Jan 2015 13:55:46 +0000 (14:55 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 15 Jan 2015 13:55:46 +0000 (14:55 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
applications/luci-app-olsr/luasrc/view/status-olsr/overview.htm

index 6d8eca8..727b476 100644 (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 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")
        if fs.access(conf) then
                luci.http.header("Content-Disposition", "attachment; filename="..file)
                luci.http.prepare_content("text/plain")