2 if [ "${4%%/*}" = "branches" ]; then
3 variant="LuCI ${4##*[-/]} Branch"
4 elif [ "${4%%/*}" = "tags" ]; then
5 variant="LuCI ${4##*[-/]} Release"
11 local pcall, dofile, _G = pcall, dofile, _G
15 if pcall(dofile, "/etc/openwrt_release") and _G.DISTRIB_DESCRIPTION then
17 distversion = _G.DISTRIB_DESCRIPTION
19 distname = "${2:-OpenWrt}"
20 distversion = "${3:-Development Snapshot}"
24 luciversion = "${5:-svn}"