Skip to content

Commit f3e8e8a

Browse files
committed
Logo (Builtin): detect and add TrueNAS Scale
1 parent c9adab3 commit f3e8e8a

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

src/detection/os/os_linux.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,15 @@ FF_MAYBE_UNUSED static bool detectDebianDerived(FFOSResult* result)
240240
ffStrbufSetS(&result->prettyName, "Raspberry Pi OS");
241241
return true;
242242
}
243+
else if (ffStrbufEndsWithS(&instance.state.platform.sysinfo.release, "+truenas"))
244+
{
245+
// TrueNAS Scale
246+
ffStrbufSetS(&result->id, "truenas-scale");
247+
ffStrbufSetS(&result->idLike, "debian");
248+
ffStrbufSetS(&result->name, "TrueNAS Scale");
249+
ffStrbufSetS(&result->prettyName, "TrueNAS Scale");
250+
return true;
251+
}
243252
else
244253
{
245254
// Hack for MX Linux. See #847

src/logo/ascii/truenas_scale.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
++ $2++
2+
$1++++++ $2++++++
3+
$1+++++++++ $2+++++++++
4+
$1+++++++ $2+++++++
5+
$1+++ $2+++ $1+ $3--------$1 $2+ $1+++ $2+++
6+
$1++++++ $2++++++ $3------$1 ++++++ $2++++++
7+
$1++++++++ $2++++++++++ $1++++++++++ $2++++++++
8+
$1+++++++ $3--$1 $2+++++++ $1+++++++ $3--$1 $2+++++++
9+
$2+++ $1+ $3--------$1 $2+ $1+++ $2+++ $1+ $3--------$1 $2+ $1+++
10+
$2++++++ $3--------$1 ++++++ $2++++++ $3--------$1 ++++++
11+
$2++++++++++ $1+++++++++ $2+++++++++ $1++++++++++
12+
$2+++++++++ $1+++++++ $3--$1 $2+++++++ $1+++++++++
13+
$2+++++ +++ $3--------$1 +++ +++++
14+
$2++ +++++++ $3------$1 +++++++ ++
15+
$2++++++++++ $1++++++++++
16+
$2++++++++ $1++++++++
17+
$2+++++ $1+++++
18+
$2++ $1++

src/logo/builtin.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4739,6 +4739,18 @@ static const FFlogo T[] = {
47394739
FF_COLOR_FG_CYAN,
47404740
},
47414741
},
4742+
// TrueNAS Scale
4743+
{
4744+
.names = {"TrueNAS-Scale"},
4745+
.lines = FASTFETCH_DATATEXT_LOGO_TRUENAS_SCALE,
4746+
.colors = {
4747+
FF_COLOR_FG_256 "39",
4748+
FF_COLOR_FG_256 "32",
4749+
FF_COLOR_FG_256 "248",
4750+
},
4751+
.colorKeys = FF_COLOR_FG_256 "248",
4752+
.colorTitle = FF_COLOR_FG_256 "32",
4753+
},
47424754
// TuxedoOS
47434755
{
47444756
.names = {"Tuxedo OS", "tuxedo"},

0 commit comments

Comments
 (0)