summaryrefslogtreecommitdiffstats
path: root/src/fbgui.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-23 13:02:50 +0100
committerJonathan Bauer2011-03-23 13:02:50 +0100
commit739dd7bd3b6bb40aa2058f28e76a4b1ccc9ae86b (patch)
tree23fffa3d3a16c1a759f85fe43af484bfede07607 /src/fbgui.cpp
parent... (diff)
parentcan read the serial out of /tmp/serial if this exists (diff)
downloadfbgui-739dd7bd3b6bb40aa2058f28e76a4b1ccc9ae86b.tar.gz
fbgui-739dd7bd3b6bb40aa2058f28e76a4b1ccc9ae86b.tar.xz
fbgui-739dd7bd3b6bb40aa2058f28e76a4b1ccc9ae86b.zip
Merge branch 'master' of git.openslx.org:lsfks/master-teamprojekt/fbgui
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 4aca2cc..206680f 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=";