OpenWrt_Luci_Lua/Mi_Lua/luci/version.lua

15 lines
346 B
Lua
Raw Normal View History

2015-05-09 10:48:46 +00:00
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
else
distname = "OpenWrt Firmware"
distversion = "Attitude Adjustment (r40348)"
end
luciname = "LuCI 0.11.1 Release"
luciversion = "0.11.1"