<% local function get_udp2raw_version(name) local info = luci.util.split(luci.sys.exec("%s -h 2>/dev/null" %{name}), "\n") local version = string.match(info[2], "git version:(%w+)") local build = string.match(info[2], "build date:(.+)") return info[1] == "udp2raw-tunnel" and version or "", info[1] == "udp2raw-tunnel" and build or "" end local udp2raw_version, udp2raw_build = get_udp2raw_version("udp2raw") -%>
<%:Running Status%> <% if udp2raw_build ~= "" then -%> <% end -%>
<%:Binary Version%> <% if udp2raw_version == "" then -%> <%:Invalid Binary File.%> <% else -%> <%=pcdata(udp2raw_version)%> <%- end %>
<%:Build Time%><%=pcdata(udp2raw_build)%>
<%:Running Status%><%:Collecting data...%>