From ed7d68490dbb13015323bee016aaf94e839ac755 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Thu, 17 May 2018 02:30:29 +0200 Subject: [PATCH] gluon-config-mode: add platform on config-mode reboot (#1397) This commit adds the ability to show information about the platform on config-mode reboot. --- .../luasrc/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/gluon-config-mode-mesh-vpn/luasrc/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua b/package/gluon-config-mode-mesh-vpn/luasrc/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua index 140cb821..16282eba 100644 --- a/package/gluon-config-mode-mesh-vpn/luasrc/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua +++ b/package/gluon-config-mode-mesh-vpn/luasrc/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua @@ -3,6 +3,7 @@ local site_i18n = i18n 'gluon-site' local uci = require("simple-uci").cursor() local fs = require "nixio.fs" +local platform = require 'gluon.platform' local site = require 'gluon.site' local sysconfig = require 'gluon.sysconfig' local util = require "gluon.util" @@ -42,6 +43,7 @@ renderer.render_string(msg, { pubkey = pubkey, hostname = hostname, site = site, + platform = platform, sysconfig = sysconfig, contact = contact, })