This commit is contained in:
2021-01-19 11:34:47 +01:00
parent 9e2abdbcad
commit a23effcd00
3 changed files with 22 additions and 6 deletions

View File

@@ -119,6 +119,11 @@ std::string find_mac() {
}
if (!iface_stream) {
printf("No wlp2s0 \n");
iface_stream.open("/sys/class/net/enp8s0/address");
}
if (!iface_stream) {
printf("No enp8s0 \n");
printf("No Device found! \n");
return "";
}
@@ -167,6 +172,7 @@ gboolean draw_callback (GtkWidget *widget, cairo_t *cr, gpointer data) {
cairo_fill (cr);
}
return FALSE;
}