From c31df31553db058ecca8439112de0c63bc9a5db7 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Wed, 19 Feb 2014 11:26:22 +0100 Subject: [PATCH] gluon-luci-theme: show gluon release --- .../files/usr/lib/lua/luci/view/themes/gluon/header.htm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm b/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm index c0f10b75..730647bc 100644 --- a/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm +++ b/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm @@ -16,8 +16,10 @@ $Id$ local sys = require "luci.sys" local http = require "luci.http" local disp = require "luci.dispatcher" + local fs = require "nixio.fs" local hostname = sys.hostname() + local release = fs.readfile("/lib/gluon/release") local load1, load5, load15 = sys.loadavg() local request = disp.context.path @@ -116,6 +118,9 @@ $Id$