sysinfo: OS name from /etc/os-release $PRETTY_NAME

This commit is contained in:
K. Lange 2021-12-06 10:51:01 +09:00
parent 51584b5cd4
commit d1865f0bb6

View File

@ -84,8 +84,8 @@ int main(int argc, char * argv[]) {
prog_lines[i] = "hostname";
sprintf(data_lines[i++], C_A "%s" C_O "@" C_A, user);
/* no command */
sprintf(data_lines[i++], C_A "OS: " C_O "ToaruOS");
prog_lines[i] = ". /etc/os-release; echo ${PRETTY_NAME}";
sprintf(data_lines[i++], C_A "OS: " C_O);
prog_lines[i] = "uname -sr";
sprintf(data_lines[i++], C_A "Kernel: " C_O);