mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Merge branch 'test' into develop
This commit is contained in:
commit
328383d30e
3 changed files with 90 additions and 1 deletions
|
@ -552,6 +552,12 @@ function get_rootfs()
|
|||
return rootfs
|
||||
end
|
||||
|
||||
function get_efi()
|
||||
local efi = {}
|
||||
efi['efi_enabled'] = nixio.fs.access("/sys/firmware/efi")
|
||||
return efi
|
||||
end
|
||||
|
||||
function get_ip(interface)
|
||||
local ut = require "luci.util"
|
||||
local dump = require("luci.util").ubus("network.interface.%s" % interface, "status", {})
|
||||
|
@ -1627,6 +1633,11 @@ local methods = {
|
|||
return get_rootfs()
|
||||
end
|
||||
},
|
||||
getefi = {
|
||||
call = function()
|
||||
return get_efi()
|
||||
end
|
||||
},
|
||||
status = {
|
||||
call = function()
|
||||
return interfaces_status()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue