mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-28 08:37:22 -08:00
Fixes in system info dialog
This commit is contained in:
parent
a7e04fd2d6
commit
0302d580db
1 changed files with 9 additions and 8 deletions
17
functions.h
17
functions.h
|
@ -463,19 +463,20 @@ namespace {
|
||||||
proc->deleteLater();
|
proc->deleteLater();
|
||||||
|
|
||||||
setDefaultWorkDir();
|
setDefaultWorkDir();
|
||||||
QString fifo_prog("sh");
|
string_writeconfig("/external_root/run/initrd-fifo", "get_kernel_build_id\n");
|
||||||
QStringList fifo_args;
|
QThread::msleep(100);
|
||||||
fifo_args << "get_kernel_build_id.sh";
|
string_writeconfig("/external_root/run/initrd-fifo", "get_kernel_commit\n");
|
||||||
QProcess *fifo_proc = new QProcess();
|
|
||||||
fifo_proc->start(fifo_prog, fifo_args);
|
|
||||||
fifo_proc->waitForFinished();
|
|
||||||
fifo_proc->deleteLater();
|
|
||||||
QThread::msleep(100);
|
QThread::msleep(100);
|
||||||
|
|
||||||
string_checkconfig_ro("/external_root/run/build_id");
|
string_checkconfig_ro("/external_root/run/kernel_build_id");
|
||||||
QString kernelBuildID = checkconfig_str_val.trimmed();
|
QString kernelBuildID = checkconfig_str_val.trimmed();
|
||||||
kernelVersion.append(", build ");
|
kernelVersion.append(", build ");
|
||||||
kernelVersion.append(kernelBuildID);
|
kernelVersion.append(kernelBuildID);
|
||||||
|
|
||||||
|
string_checkconfig_ro("/external_root/run/kernel_commit");
|
||||||
|
QString kernelCommit = checkconfig_str_val.trimmed();
|
||||||
|
kernelVersion.append(", commit ");
|
||||||
|
kernelVersion.append(kernelCommit);
|
||||||
}
|
}
|
||||||
QString getConnectionInformation() {
|
QString getConnectionInformation() {
|
||||||
QString getIpProg ("sh");
|
QString getIpProg ("sh");
|
||||||
|
|
Loading…
Reference in a new issue