mirror of
https://github.com/kenzok8/openwrt-packages.git
synced 2025-01-09 03:58:26 +08:00
update 2024-07-20 14:01:08
This commit is contained in:
parent
aa17ff7127
commit
5e850e3012
@ -16,7 +16,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=luci-app-amlogic
|
PKG_NAME:=luci-app-amlogic
|
||||||
PKG_VERSION:=3.1.243
|
PKG_VERSION:=3.1.244
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0 License
|
PKG_LICENSE:=GPL-2.0 License
|
||||||
|
@ -409,7 +409,7 @@ end
|
|||||||
|
|
||||||
--Return the current openwrt firmware version
|
--Return the current openwrt firmware version
|
||||||
local function current_firmware_version()
|
local function current_firmware_version()
|
||||||
return luci.sys.exec("ls /lib/modules/ 2>/dev/null | grep -oE '^[1-9].[0-9]{1,3}.[0-9]+'") or "Invalid value."
|
return luci.sys.exec("uname -r 2>/dev/null | grep -oE '^[1-9].[0-9]{1,3}.[0-9]+'") or "Invalid value."
|
||||||
end
|
end
|
||||||
|
|
||||||
--Return the current plugin version
|
--Return the current plugin version
|
||||||
@ -419,12 +419,12 @@ end
|
|||||||
|
|
||||||
--Return the current kernel version
|
--Return the current kernel version
|
||||||
local function current_kernel_version()
|
local function current_kernel_version()
|
||||||
return luci.sys.exec("ls /lib/modules/ 2>/dev/null | grep -oE '^[1-9].[0-9]{1,3}.[0-9]+'") or "Invalid value."
|
return luci.sys.exec("uname -r 2>/dev/null | grep -oE '^[1-9].[0-9]{1,3}.[0-9]+'") or "Invalid value."
|
||||||
end
|
end
|
||||||
|
|
||||||
--Return the current kernel branch
|
--Return the current kernel branch
|
||||||
local function current_kernel_branch()
|
local function current_kernel_branch()
|
||||||
local default_kernel_branch = luci.sys.exec("ls /lib/modules/ 2>/dev/null | grep -oE '^[1-9].[0-9]{1,3}'")
|
local default_kernel_branch = luci.sys.exec("uname -r 2>/dev/null | grep -oE '^[1-9].[0-9]{1,3}'")
|
||||||
local amlogic_kernel_branch = luci.sys.exec("uci get amlogic.config.amlogic_kernel_branch 2>/dev/null | grep -oE '^[1-9].[0-9]{1,3}'") or ""
|
local amlogic_kernel_branch = luci.sys.exec("uci get amlogic.config.amlogic_kernel_branch 2>/dev/null | grep -oE '^[1-9].[0-9]{1,3}'") or ""
|
||||||
if trim(amlogic_kernel_branch) == "" then
|
if trim(amlogic_kernel_branch) == "" then
|
||||||
return default_kernel_branch
|
return default_kernel_branch
|
||||||
|
Loading…
Reference in New Issue
Block a user