luci-base: Include Openwrt build revision in displayed version string
authorHannu Nyman <hannu.nyman@iki.fi>
Fri, 11 Mar 2016 12:09:39 +0000 (14:09 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Fri, 11 Mar 2016 12:16:24 +0000 (14:16 +0200)
The version string displayed in the footer and the overview page contains
both LuCI and Openwrt versions. But due to differences in the contents
of /etc/openwrt_release the exact Openwrt revision r..... may be missing:
* In trunk that revision is included in the DISTRIB_DESCRIPTION field that
  is displayed in Luci as the Openwrt version.
* In release branches, that field contains the release number like 15.05.

Revision number is always present in DISTRIB_REVISION field, so add the
revision from that field in case the revision is not already present
in the string.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

No differences found