FreeBSD + OpenBSD Support

This commit is contained in:
TheDarkBug 2021-03-08 00:24:36 +01:00 committed by GitHub
parent 7a90966988
commit fd71120e34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,8 +226,9 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu
printf( "\n\n\nascii icon\n nedds to be\n added\n\n\n\n\n"); printf( "\n\n\nascii icon\n nedds to be\n added\n\n\n\n\n");
} }
// BSD
// BSD
else if (strcmp(version_name, "openbsd") == 0) { else if (strcmp(version_name, "openbsd") == 0) {
sprintf(version_name, "%s", "OwOpenBSD"); sprintf(version_name, "%s", "OwOpenBSD");
printf( "\033[1E\033[3C%s ______ \n" printf( "\033[1E\033[3C%s ______ \n"
@ -256,6 +257,7 @@ void print_image() { // prints logo (as an image) of the given system. distribut
system(command); system(command);
printf("\033[1E\033[0C\b"); printf("\033[1E\033[0C\b");
// linux
if (strcmp(version_name, "arch") == 0) sprintf(version_name, "%s", "Nyarch Linuwu"); if (strcmp(version_name, "arch") == 0) sprintf(version_name, "%s", "Nyarch Linuwu");
else if (strcmp(version_name, "artix") == 0) sprintf(version_name, "%s", "Nyartix Linuwu"); else if (strcmp(version_name, "artix") == 0) sprintf(version_name, "%s", "Nyartix Linuwu");
else if (strcmp(version_name, "debian") == 0) sprintf(version_name, "%s", "Debinyan"); else if (strcmp(version_name, "debian") == 0) sprintf(version_name, "%s", "Debinyan");
@ -264,6 +266,10 @@ void print_image() { // prints logo (as an image) of the given system. distribut
else if (strcmp(version_name, "manjaro") == 0) sprintf(version_name, "%s", "Myanjawo"); else if (strcmp(version_name, "manjaro") == 0) sprintf(version_name, "%s", "Myanjawo");
else if (strcmp(version_name, "\"manjaro-arm\"") == 0) sprintf(version_name, "%s", "Myanjawo AWM"); else if (strcmp(version_name, "\"manjaro-arm\"") == 0) sprintf(version_name, "%s", "Myanjawo AWM");
else if (strcmp(version_name, "android") == 0) sprintf(version_name, "%s", "Nyandroid"); // android at the end because it could be not considered as an actual distribution of gnu/linux else if (strcmp(version_name, "android") == 0) sprintf(version_name, "%s", "Nyandroid"); // android at the end because it could be not considered as an actual distribution of gnu/linux
// BSD
if (strcmp(version_name, "openbsd") == 0) sprintf(version_name, "%s", "OwOpenBSD");
else if (strcmp(version_name, "freebsd") == 0) sprintf(version_name, "%s", "FweeBSD");
} }
void usage(char* arg) { void usage(char* arg) {