summaryrefslogtreecommitdiffstats
path: root/src/fbgui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbgui.cpp')
-rw-r--r--src/fbgui.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fbgui.cpp b/src/fbgui.cpp
index d4b5c82..f6b412a 100644
--- a/src/fbgui.cpp
+++ b/src/fbgui.cpp
@@ -37,12 +37,23 @@ fbgui::fbgui()
//watchDHCP();
// PBS test (working dont delete)
+ QString serial;
QFileInfo fi("/tmp/serial");
if (fi.exists())
+ {
qxtLog->debug() << "Found /tmp/serial !";
+
+ // If the file exists, than read the data
+ QFile file;
+ file.setFileName("/tmp/serial");
+ file.open(QIODevice::ReadOnly);
+ serial = file.readAll();
+ file.close();
+ }
else
qxtLog->debug() << "No file /tmp/serial !";
// TODO append serial number to postData.
+ //QByteArray postData = "mac=d8:d3:85:80:81:8b&hardwarehash=12341234123412341234123412341234&bootisoID=1&serial="+serial;
QNetworkRequest req(baseURL);
QByteArray postData = "mac=d8:d3:85:80:81:8b&hardwarehash=12341234123412341234123412341234&bootisoID=1&serial=";