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