diff --git a/src/detection/os/os_linux.c b/src/detection/os/os_linux.c index 4df159560..bc27c6957 100644 --- a/src/detection/os/os_linux.c +++ b/src/detection/os/os_linux.c @@ -240,6 +240,15 @@ FF_MAYBE_UNUSED static bool detectDebianDerived(FFOSResult* result) ffStrbufSetS(&result->prettyName, "Raspberry Pi OS"); return true; } + else if (ffStrbufEndsWithS(&instance.state.platform.sysinfo.release, "+truenas")) + { + // TrueNAS Scale + ffStrbufSetS(&result->id, "truenas-scale"); + ffStrbufSetS(&result->idLike, "debian"); + ffStrbufSetS(&result->name, "TrueNAS Scale"); + ffStrbufSetS(&result->prettyName, "TrueNAS Scale"); + return true; + } else { // Hack for MX Linux. See #847 diff --git a/src/logo/ascii/truenas_scale.txt b/src/logo/ascii/truenas_scale.txt new file mode 100644 index 000000000..364a6dddc --- /dev/null +++ b/src/logo/ascii/truenas_scale.txt @@ -0,0 +1,18 @@ + ++ $2++ + $1++++++ $2++++++ + $1+++++++++ $2+++++++++ + $1+++++++ $2+++++++ + $1+++ $2+++ $1+ $3--------$1 $2+ $1+++ $2+++ + $1++++++ $2++++++ $3------$1 ++++++ $2++++++ + $1++++++++ $2++++++++++ $1++++++++++ $2++++++++ + $1+++++++ $3--$1 $2+++++++ $1+++++++ $3--$1 $2+++++++ +$2+++ $1+ $3--------$1 $2+ $1+++ $2+++ $1+ $3--------$1 $2+ $1+++ +$2++++++ $3--------$1 ++++++ $2++++++ $3--------$1 ++++++ +$2++++++++++ $1+++++++++ $2+++++++++ $1++++++++++ + $2+++++++++ $1+++++++ $3--$1 $2+++++++ $1+++++++++ + $2+++++ +++ $3--------$1 +++ +++++ + $2++ +++++++ $3------$1 +++++++ ++ + $2++++++++++ $1++++++++++ + $2++++++++ $1++++++++ + $2+++++ $1+++++ + $2++ $1++ \ No newline at end of file diff --git a/src/logo/builtin.c b/src/logo/builtin.c index 125436003..56a44d894 100644 --- a/src/logo/builtin.c +++ b/src/logo/builtin.c @@ -4739,6 +4739,18 @@ static const FFlogo T[] = { FF_COLOR_FG_CYAN, }, }, + // TrueNAS Scale + { + .names = {"TrueNAS-Scale"}, + .lines = FASTFETCH_DATATEXT_LOGO_TRUENAS_SCALE, + .colors = { + FF_COLOR_FG_256 "39", + FF_COLOR_FG_256 "32", + FF_COLOR_FG_256 "248", + }, + .colorKeys = FF_COLOR_FG_256 "248", + .colorTitle = FF_COLOR_FG_256 "32", + }, // TuxedoOS { .names = {"Tuxedo OS", "tuxedo"},