From e68bb3dd2e052329866ddf052f73b8187cd5c485 Mon Sep 17 00:00:00 2001 From: vicchi Date: Sat, 23 Jan 2021 12:09:53 +0000 Subject: [PATCH] feat: Add (rudimentary) Synology DSM support --- neofetch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/neofetch b/neofetch index 62b82ea4..c81de3c0 100755 --- a/neofetch +++ b/neofetch @@ -1080,6 +1080,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") @@ -1536,6 +1541,7 @@ get_packages() { has alps && tot alps showinstalled has butch && tot butch list has swupd && tot swupd bundle-list --quiet + has dpkg && pkgs_h=5 tot dpkg --list # 'mine' conflicts with minesweeper games. [[ -f /etc/SDE-VERSION ]] &&