5 if [ "${4%%/*}" = "branches" ]; then
6 variant="LuCI ${4##*[-/]} Branch"
7 elif [ "${4%%/*}" = "tags" ]; then
8 variant="LuCI ${4##*[-/]} Release"
14 local pcall, dofile, _G = pcall, dofile, _G
18 if pcall(dofile, "/etc/openwrt_release") and _G.DISTRIB_DESCRIPTION then
20 distversion = _G.DISTRIB_DESCRIPTION
22 distname = "${2:-OpenWrt}"
23 distversion = "${3:-Development Snapshot}"
27 luciversion = "${5:-svn}"