mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update luci-mod-admin-full to latest version
This commit is contained in:
parent
b108aa9789
commit
027d882f4d
20 changed files with 1589 additions and 169 deletions
|
@ -27,7 +27,8 @@ function index()
|
|||
entry({"admin", "system", "fstab", "swap"}, cbi("admin_system/fstab/swap"), nil).leaf = true
|
||||
end
|
||||
|
||||
if fs.access("/sys/class/leds") then
|
||||
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
|
||||
|
||||
|
@ -195,7 +196,7 @@ local function supports_sysupgrade()
|
|||
end
|
||||
|
||||
local function supports_reset()
|
||||
return (os.execute([[grep -sqE '"rootfs_data"|"ubi"' /proc/mtd]]) == 0)
|
||||
return (os.execute([[grep -sq "^overlayfs:/overlay / overlay " /proc/mounts]]) == 0)
|
||||
end
|
||||
|
||||
local function storage_size()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue