luci-mod-admin-full: use fs.glob instead nixio.fs.glob
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 7 May 2018 13:17:42 +0000 (21:17 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 7 May 2018 13:19:35 +0000 (21:19 +0800)
It's how the module was named when "require"d and used by other code in
the same function

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
modules/luci-mod-admin-full/luasrc/controller/admin/system.lua

index 85bf3b6..6fcd66f 100644 (file)
@@ -27,7 +27,7 @@ function index()
                entry({"admin", "system", "fstab", "swap"},  cbi("admin_system/fstab/swap"),  nil).leaf = true
        end
 
                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"), _("<abbr title=\"Light Emitting Diode\">LED</abbr> Configuration"), 60)
        end
        if number > 0 then
                entry({"admin", "system", "leds"}, cbi("admin_system/leds"), _("<abbr title=\"Light Emitting Diode\">LED</abbr> Configuration"), 60)
        end