luci-proto-openconnect: remove "interface" field
[project/luci.git] / modules / luci-base / src / mkversion.sh
index 33c7a3f..e2d02c1 100755 (executable)
@@ -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,1,true) then
+                       distversion = distversion .. " " .. distrevision
+               end
+       end
 else
        distname    = "OpenWrt"
        distversion = "Development Snapshot"