luci-app-multiwan: switch to nixio.fs
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 15 Jan 2015 14:06:03 +0000 (15:06 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 15 Jan 2015 14:06:03 +0000 (15:06 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
applications/luci-app-multiwan/luasrc/controller/multiwan.lua

index b596ef7..523ac21 100644 (file)
@@ -1,7 +1,7 @@
 module("luci.controller.multiwan", package.seeall)
 
 function index()
-       local fs = luci.fs or nixio.fs
+       local fs = require "nixio.fs"
        if not fs.access("/etc/config/multiwan") then
                return
        end