本文最后更新于 2025-08-20,文章内容可能已经过时。

在/usr/lib/lua/luci/version.lua中找到,文件储存在/etc/openwrt_release上

local pcall, dofile, _G = pcall, dofile, _G

module "luci.version"

if pcall(dofile, "/etc/openwrt_release") and _G.DISTRIB_DESCRIPTION then
        distname    = ""
        distversion = _G.DISTRIB_DESCRIPTION
        if _G.DISTRIB_REVISION then
                distrevision = _G.DISTRIB_REVISION
                if not distversion:find(distrevision,1,true) then
                        distversion = distversion .. " " .. distrevision
                end
        end
else
        distname    = "OpenWrt"
        distversion = "Development Snapshot"
end

luciname    = "LuCI Master"
luciversion = "git-61f6e6d"

进入/etc/openwrt_release进行修改

DISTRIB_ID='1004'
DISTRIB_RELEASE='22.03.2'
DISTRIB_REVISION='10.20.2022'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION="OpenWrt 定制版 10.20.2022 by  LY"
DISTRIB_TAINTS='busybox override'

修改后,重启openwrt,即可看到页面显示信息已经更改
请添加图片描述