[PR] dylanaraps/neofetch#1666 from vicchi - Add (rudimentary) Synology DSM support

Upstream PR: https://github.com/dylanaraps/neofetch/pull/1666
Thanks to @vicchi

Co-authored-by: vicchi <gary@vicchi.org>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-08-11 23:29:49 -04:00
commit 2a84f63fd5

View file

@ -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")