Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add (rudimentary) Synology DSM support #1666

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vicchi
Copy link

@vicchi vicchi commented Jan 24, 2021

Description

Added rudimentary Synology DSM support (see also #1275), via the DSM specific release metadata in /etc/VERSION as well as detecting packages via dpkg in addition to the current opkg support (if you're using the shell on a DSM box, you'll probably end up installing packages from Optware or Entware via the Easy Bootrap Installer comunity package. Well at least I did to get acme.sh running but that's another story).

Features

  • Detects and reports the major.minor.patch DSM release, plus build number, plus update number
  • Detects and reports packages installed via dpkg

Issues

Running shellcheck will fail with SC2154: [productversion|buildnumber|smallfixnumber] is referenced but not assigned if not run natively on DSM due to a dependency on sourcing the DSM /etc/VERSION file.

TODO

  • Try and find a decent ASCII art version of the Synology logo

@vicchi vicchi changed the title feat: Add (rudimentary) Synology DSM support Add (rudimentary) Synology DSM support Jan 24, 2021
@@ -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
Copy link
Owner

@dylanaraps dylanaraps Jun 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix this in master myself. 👍

@hgy59
Copy link

hgy59 commented Feb 6, 2022

@vicchi are you still working on this?

I did some enhancements that could be added to your PR:

  • add unique dsm model information
  • add Update version only when smallfixnumber > 0
  • add DSM icon (this needs a small enhancement to support ascii_data with esc control sequences)

here is a sample output:
grafik

hykilpikonna added a commit to hykilpikonna/hyfetch that referenced this pull request Aug 12, 2022
…port

Upstream PR: dylanaraps#1666
Thanks to @vicchi

Co-authored-by: vicchi <gary@vicchi.org>
@hykilpikonna
Copy link

Thank you for your contribution!

This PR is merged into hyfetch since this repo (dylanaraps/neofetch) seems no longer maintained.

HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many pull requests that are not merged in the original repo.

Read the "Running Updated Original Neofetch" section for more info!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants