mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57: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();
|
||||
|
||||
setDefaultWorkDir();
|
||||
QString fifo_prog("sh");
|
||||
QStringList fifo_args;
|
||||
fifo_args << "get_kernel_build_id.sh";
|
||||
QProcess *fifo_proc = new QProcess();
|
||||
fifo_proc->start(fifo_prog, fifo_args);
|
||||
fifo_proc->waitForFinished();
|
||||
fifo_proc->deleteLater();
|
||||
string_writeconfig("/external_root/run/initrd-fifo", "get_kernel_build_id\n");
|
||||
QThread::msleep(100);
|
||||
string_writeconfig("/external_root/run/initrd-fifo", "get_kernel_commit\n");
|
||||
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();
|
||||
kernelVersion.append(", build ");
|
||||
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 getIpProg ("sh");
|
||||
|
|
Loading…
Reference in a new issue