Add flasher credential provisioning, LUKS2 FDE, LED fixes, and docs

This commit is contained in:
Luxferre committed 2026-11-23 08:21:37 +02:00
1 parent 2706b9a901
commit b7dca4f15f
49 files changed
+1524 -183

No files matched your search

+6 -2
View File
@@ -981,7 +981,8 @@ int gemui_unix_cmd(const char *sock_path, const char *cmd, char *resp, size_t re
return -1;
}
size_t len = strlen(cmd);
if (write(fd, cmd, len) < 0 || (len == 0 || cmd[len - 1] != '\n' ? write(fd, "\n", 1) < 0 : 0)) {
if (send(fd, cmd, len, MSG_NOSIGNAL) < 0 ||
((len == 0 || cmd[len - 1] != '\n') ? send(fd, "\n", 1, MSG_NOSIGNAL) < 0 : 0)) {
close(fd);
return -1;
}
@@ -989,11 +990,14 @@ int gemui_unix_cmd(const char *sock_path, const char *cmd, char *resp, size_t re
if (resp && resp_sz > 0) {
size_t off = 0;
while (off + 1 < resp_sz) {
ssize_t n = read(fd, resp + off, resp_sz - 1 - off);
ssize_t n = recv(fd, resp + off, resp_sz - 1 - off, 0);
if (n <= 0) break;
off += (size_t)n;
}
resp[off] = '\0';
} else {
char sink[64];
while (recv(fd, sink, sizeof(sink), 0) > 0) {}
}
close(fd);
return 0;