From 4fb815d4e6e29487929c785c1842dfaa53fab24d Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Mon, 21 Feb 2022 23:32:32 -0500 Subject: [PATCH] Write Git info to tmpfs --- mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 49f74f8..ef0689b 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -564,6 +564,11 @@ MainWindow::MainWindow(QWidget *parent) reboot(true); } + + // Write version control info to file in tmpfs + if(checkconfig("/opt/inkbox_genuine") == true) { + string_writeconfig("/external_root/run/inkbox_gui_git_commit", GIT_VERSION); + } } MainWindow::~MainWindow()