mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-27 16:17:21 -08:00
System info: if no network connection, set IP as 'Not available'
This commit is contained in:
parent
d9a46e7615
commit
1ba81f6e89
2 changed files with 10 additions and 5 deletions
|
@ -383,6 +383,9 @@ namespace {
|
||||||
getIpProc->waitForFinished();
|
getIpProc->waitForFinished();
|
||||||
|
|
||||||
QString ipAddress = getIpProc->readAllStandardOutput();
|
QString ipAddress = getIpProc->readAllStandardOutput();
|
||||||
|
if(ipAddress == "") {
|
||||||
|
ipAddress = "Not available";
|
||||||
|
}
|
||||||
return ipAddress;
|
return ipAddress;
|
||||||
}
|
}
|
||||||
void getSystemInfo() {
|
void getSystemInfo() {
|
||||||
|
|
12
reader.cpp
12
reader.cpp
|
@ -173,11 +173,13 @@ reader::reader(QWidget *parent) :
|
||||||
string_writeconfig("/tmp/inkboxBookPath", book_file_str);
|
string_writeconfig("/tmp/inkboxBookPath", book_file_str);
|
||||||
|
|
||||||
// Calling InkBox daemon (ibxd) via FIFO interface to run bookconfig_mount
|
// Calling InkBox daemon (ibxd) via FIFO interface to run bookconfig_mount
|
||||||
string_writeconfig("/opt/ibxd", "bookconfig_mount\n");
|
if(checkconfig(".config/16-global_reading_settings") == true) {
|
||||||
// Callback handler to wait until bookconfig_mount has finished execution
|
string_writeconfig("/opt/ibxd", "bookconfig_mount\n");
|
||||||
while(true) {
|
// Callback handler to wait until bookconfig_mount has finished execution
|
||||||
if(QFile::exists("/inkbox/bookConfigSetUp")) {
|
while(true) {
|
||||||
break;
|
if(QFile::exists("/inkbox/bookConfigSetUp")) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue