feat: Add (rudimentary) Synology DSM support
This commit is contained in:
parent
6dd85d67fc
commit
e68bb3dd2e
1 changed files with 6 additions and 0 deletions
6
neofetch
6
neofetch
|
@ -1080,6 +1080,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")
|
||||||
|
@ -1536,6 +1541,7 @@ get_packages() {
|
||||||
has alps && tot alps showinstalled
|
has alps && tot alps showinstalled
|
||||||
has butch && tot butch list
|
has butch && tot butch list
|
||||||
has swupd && tot swupd bundle-list --quiet
|
has swupd && tot swupd bundle-list --quiet
|
||||||
|
has dpkg && pkgs_h=5 tot dpkg --list
|
||||||
|
|
||||||
# 'mine' conflicts with minesweeper games.
|
# 'mine' conflicts with minesweeper games.
|
||||||
[[ -f /etc/SDE-VERSION ]] &&
|
[[ -f /etc/SDE-VERSION ]] &&
|
||||||
|
|
Loading…
Reference in a new issue