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

Add DietPi support #1706

Closed
wants to merge 10 commits into from
Closed

Conversation

ravenclaw900
Copy link

@ravenclaw900 ravenclaw900 commented Mar 21, 2021

Description

Adds the DietPi linux "distro".

Resolves #1705

Features

Add DietPi versoning and ASCII logo

Issues

Nothing except for the outstanding one that APT can take a while.

TODO

Nothing

@ravenclaw900
Copy link
Author

Screen Shot 2021-03-21 at 1 01 10 PM

@koutsie
Copy link

koutsie commented Mar 22, 2021

LGTM!

@dylanaraps
Copy link
Owner

Existing detection methods do not work?

Comment on lines +1002 to +1009
elif [[ -f /boot/dietpi/.version ]]; then
. /boot/dietpi/.version
case $distro_shorthand in
on) distro="DietPi v$G_DIETPI_VERSION_CORE.$G_DIETPI_VERSION_SUB.$G_DIETPI_VERSION_RC" ;;
tiny) distro='DietPi' ;;
*) distro="DietPi v$G_DIETPI_VERSION_CORE.$G_DIETPI_VERSION_SUB.$G_DIETPI_VERSION_RC ($G_GITOWNER/$G_GITBRANCH)"
esac

Copy link
Owner

Choose a reason for hiding this comment

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

The existing detection methods don't work?

Copy link
Author

@ravenclaw900 ravenclaw900 Jun 11, 2021

Choose a reason for hiding this comment

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

DietPi is based on Debian/Raspbian/Armbian, and shows up as such. It's really just a bunch of scripts and optimizations on top of that, and not a full distribution.

Copy link
Owner

Choose a reason for hiding this comment

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

If it's not a full distribution, it shouldn't be added to neofetch (line has to be drawn somewhere). Thanks for the PR.

@hykilpikonna
Copy link

Since DietPi can be detected with existing distro detection methods now, I can merge this.

hykilpikonna added a commit to hykilpikonna/hyfetch that referenced this pull request Oct 4, 2022
@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!

@ravenclaw900
Copy link
Author

Thanks!

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

Successfully merging this pull request may close these issues.

Distro request | DietPi
4 participants