|
|
@ -6,7 +6,7 @@ local labels = { |
|
|
|
board_name = string.sub(get_contents("/tmp/sysinfo/board_name"), 1, -2) |
|
|
|
} |
|
|
|
|
|
|
|
for k, v in string.gmatch(get_contents("/etc/openwrt_release"), "(DISTRIB_%w+)='(%w+)'\n") do |
|
|
|
for k, v in string.gmatch(get_contents("/etc/openwrt_release"), "(DISTRIB_%w+)='(.-)'\n") do |
|
|
|
if k == "DISTRIB_ID" then |
|
|
|
labels["id"] = v |
|
|
|
elseif k == "DISTRIB_RELEASE" then |
|
|
|