13-CF / afetch

Simple system info written in C
GNU General Public License v3.0
220 stars 39 forks source link

Distribution Request: Bedrock Linux #76

Open sheeepdev opened 2 years ago

sheeepdev commented 2 years ago

I would love it if you could add Bedrock Linux to afetch

The problem is with bedrock, its basically a distro which allows you to mix and match components (like an easy LFS) but I have no idea how you could get the info for it. I don't know if I have explained it correctly, if I haven't I would suggest you to read the documentation on their website or run the hijacker on some spare system then run thru the tutorial

Bedrock has its own "package manager" which updates other package managers (thats why its called "pmm" (package manager manager) but I wouldn't use that as a package count in the fetch because I think its better to use the original distro's package manager

13-CF commented 2 years ago

If the pmm package manager is exclusive to Bedrock Linux then that could be checked for in order to determine that the distro is Bedrock. I think you may be right about the package count though, I'd need to read up a bit on how the package manager works.

sheeepdev commented 2 years ago

If the pmm package manager is exclusive to Bedrock Linux then that could be checked for in order to determine that the distro is Bedrock. I think you may be right about the package count though, I'd need to read up a bit on how the package manager works.

Yeah, you could probably check if the pmm command exists on the system, and if it does, you can determine that the distro is Bedrock.

sheeepdev commented 2 years ago

I found a snippet of code from dylanaraps/pfetch that can help you identify bedrock:

# Check to see if we're running Bedrock Linux which is
# very unique. This simply checks to see if the user's
# PATH contains a Bedrock specific value.
case $PATH in
  (*/bedrock/cross/*)
  distro='Bedrock Linux'
  ;;
 esac
sheeepdev commented 2 years ago

Any updates on this?

sheeepdev commented 2 years ago

?

sheeepdev commented 1 year ago

@13-CF