[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:
commit
2a84f63fd5
1 changed files with 5 additions and 0 deletions
5
neofetch
5
neofetch
|
@ -1150,6 +1150,11 @@ get_distro() {
|
||||||
read -ra kernel_info <<< "$(sysctl -n kern.version)"
|
read -ra kernel_info <<< "$(sysctl -n kern.version)"
|
||||||
distro=${kernel_info[*]:0:2}
|
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
|
else
|
||||||
for release_file in /etc/*-release; do
|
for release_file in /etc/*-release; do
|
||||||
distro+=$(< "$release_file")
|
distro+=$(< "$release_file")
|
||||||
|
|
Loading…
Reference in a new issue