Skip to content

Commit 2a84f63

Browse files
hykilpikonnavicchi
andcommitted
[PR] dylanaraps/neofetch#1666 from vicchi - Add (rudimentary) Synology DSM support
Upstream PR: dylanaraps/neofetch#1666 Thanks to @vicchi Co-authored-by: vicchi <[email protected]>
2 parents 39e5dd0 + e68bb3d commit 2a84f63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

neofetch

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,11 @@ get_distro() {
11501150
read -ra kernel_info <<< "$(sysctl -n kern.version)"
11511151
distro=${kernel_info[*]:0:2}
11521152

1153+
elif [[ -f /etc/VERSION ]]; then
1154+
# Source the DSM VERSION file
1155+
source /etc/VERSION
1156+
distro="Synology DSM ${productversion}-${buildnumber} Update ${smallfixnumber}"
1157+
11531158
else
11541159
for release_file in /etc/*-release; do
11551160
distro+=$(< "$release_file")

0 commit comments

Comments
 (0)