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 b596ef7e34213f3ee7f817dbf41f46eabb74363a..523ac21200230b5e29cbba6c5be5dafc39320a2c 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