From c91ba4babc63fcc94771b608ae497a7a2db32b86 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Mon, 7 May 2018 21:17:42 +0800 Subject: [PATCH] luci-mod-admin-full: use fs.glob instead nixio.fs.glob It's how the module was named when "require"d and used by other code in the same function Signed-off-by: Yousong Zhou --- modules/luci-mod-admin-full/luasrc/controller/admin/system.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua b/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua index 85bf3b6867..6fcd66f441 100644 --- a/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua +++ b/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua @@ -27,7 +27,7 @@ function index() entry({"admin", "system", "fstab", "swap"}, cbi("admin_system/fstab/swap"), nil).leaf = true end - local nodes, number = nixio.fs.glob("/sys/class/leds/*") + local nodes, number = fs.glob("/sys/class/leds/*") if number > 0 then entry({"admin", "system", "leds"}, cbi("admin_system/leds"), _("LED Configuration"), 60) end -- 2.30.2