FreeBSD + OpenBSD Support
This commit is contained in:
parent
7a90966988
commit
fd71120e34
1 changed files with 20 additions and 14 deletions
32
uwufetch.c
32
uwufetch.c
|
@ -226,27 +226,28 @@ 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"
|
||||||
" \\- -/ %s\u2665 \n"
|
" \\- -/ %s\u2665 \n"
|
||||||
"%s\\_/ \\ \n"
|
"%s\\_/ \\ \n"
|
||||||
"| %s> < %s| \n"
|
"| %s> < %s| \n"
|
||||||
"|_ < %s// %sW %s// \n"
|
"|_ < %s// %sW %s// \n"
|
||||||
"%s/ \\ / \n"
|
"%s/ \\ / \n"
|
||||||
" /-________-\\ \n\n", YELLOW, RED, YELLOW, WHITE, YELLOW, RED, WHITE, RED, YELLOW);
|
" /-________-\\ \n\n", YELLOW, RED, YELLOW, WHITE, YELLOW, RED, WHITE, RED, YELLOW);
|
||||||
|
|
||||||
} else if (strcmp(version_name, "freebsd") == 0) {
|
} else if (strcmp(version_name, "freebsd") == 0) {
|
||||||
sprintf(version_name, "%s", "FweeBSD");
|
sprintf(version_name, "%s", "FweeBSD");
|
||||||
printf( "\033[1E\033[3C%s\n"
|
printf( "\033[1E\033[3C%s\n"
|
||||||
" /\\,-'''''-,/\\\n"
|
" /\\,-'''''-,/\\\n"
|
||||||
" \\_) (_/\n"
|
" \\_) (_/\n"
|
||||||
" | \\ / |\n"
|
" | \\ / |\n"
|
||||||
" | O w O |\n"
|
" | O w O |\n"
|
||||||
" ; ;\n"
|
" ; ;\n"
|
||||||
" '-_____-'\n", RED);
|
" '-_____-'\n", RED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue