summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xmodules/luci-base/src/mkversion.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/luci-base/src/mkversion.sh b/modules/luci-base/src/mkversion.sh
index 33c7a3ffe..e3ef97448 100755
--- a/modules/luci-base/src/mkversion.sh
+++ b/modules/luci-base/src/mkversion.sh
@@ -8,6 +8,12 @@ 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) then
+ distversion = distversion .. " " .. distrevision
+ end
+ end
else
distname = "OpenWrt"
distversion = "Development Snapshot"