Загрузить файлы в «/»

This commit is contained in:
8nlight 2023-10-20 17:46:54 +03:00
parent 48c3979ab4
commit e28724bf13
2 changed files with 15 additions and 1 deletions

View File

@ -206,7 +206,10 @@ LOGO GetArt(void) {
SetArt(&art, sizeof(Arch) / sizeof(char *), "pacman -Qq | wc -l", Arch, "\033[0;34m");
}
else if (access("/system", F_OK) != 1)
else if (strstr(Uts.sysname, "OpenBSD"))
SetArt(&art, sizeof(OpenBSD) / sizeof(char *), "/bin/ls -1 /var/db/pkg/ | wc -l | tr -d ' '", OpenBSD, "\033[1;33m");
else if (!chdir("/system"))
SetArt(&art, sizeof(Android) / sizeof(char *), "dpkg -l | tail -n+6 | wc -l", Android, "\033[32m");
else

11
logos.h
View File

@ -52,6 +52,17 @@ char *Android[] = {
" ",
};
char *OpenBSD[] = {
"\033[1;33m _____ ",
"\033[1;33m \\- -/ ",
"\033[1;33m \\_/ \\ ",
"\033[1;33m \\ \033[0mO O\033[1;33m |",
"\033[1;33m |_ < ) 3 )",
"\033[1;33m / \\ / ",
"\033[1;33m /-_____-\\ ",
" "
};
char *Unknow[] = {
"\033[1;36m ___ ",
"\033[1;36m (\033[0m..\033[1;36m | ",