Skip to content

Commit

Permalink
[PR] dylanaraps#1666 from vicchi - Add (rudimentary) Synology DSM sup…
Browse files Browse the repository at this point in the history
…port

Upstream PR: dylanaraps#1666
Thanks to @vicchi

Co-authored-by: vicchi <gary@vicchi.org>
  • Loading branch information
hykilpikonna and vicchi committed Aug 12, 2022
2 parents 39e5dd0 + e68bb3d commit 2a84f63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,11 @@ get_distro() {
read -ra kernel_info <<< "$(sysctl -n kern.version)"
distro=${kernel_info[*]:0:2}

elif [[ -f /etc/VERSION ]]; then
# Source the DSM VERSION file
source /etc/VERSION
distro="Synology DSM ${productversion}-${buildnumber} Update ${smallfixnumber}"

else
for release_file in /etc/*-release; do
distro+=$(< "$release_file")
Expand Down

0 comments on commit 2a84f63

Please sign in to comment.