Add support for DragonFly BSD (freebsd/dfly).

This commit is contained in:
abbie 2024-11-13 18:48:49 +00:00
parent 77e0b50336
commit 1c484427e3
Signed by: threeoh6000
GPG key ID: 801FE4AD456E922C
3 changed files with 18 additions and 0 deletions

View file

@ -1,6 +1,9 @@
# abbiefetch # abbiefetch
abbiefetch is a POSIX compliant fetch script intended to be as portable as possible to run on machines of any age. abbiefetch is not dependent on any specific shell and should run fine on any system with a POSIX compliant shell and Unix utilities. abbiefetch is a POSIX compliant fetch script intended to be as portable as possible to run on machines of any age. abbiefetch is not dependent on any specific shell and should run fine on any system with a POSIX compliant shell and Unix utilities.
## Building
To build abbiefetch, clone this repository and run `./build.sh`. If you receive errors about `tee` having an invalid option then run `./build_alternate.sh`.
## Compatibility ## Compatibility
abbiefetch will attempt to gather as much information as possible on systems that don't have full compatibility and will provide you with a system type (and sometimes a subtype) to let you know what abbiefetch thinks your computer is running. abbiefetch will attempt to gather as much information as possible on systems that don't have full compatibility and will provide you with a system type (and sometimes a subtype) to let you know what abbiefetch thinks your computer is running.
@ -15,6 +18,7 @@ abbiefetch will attempt to gather as much information as possible on systems tha
| `openbsd` | OpenBSD | | 1.0.0 | Full | | | `openbsd` | OpenBSD | | 1.0.0 | Full | |
| `netbsd` | NetBSD | | 1.1.0 | Full | | | `netbsd` | NetBSD | | 1.1.0 | Full | |
| `freebsd` | FreeBSD | | 1.1.0 | Full | | | `freebsd` | FreeBSD | | 1.1.0 | Full | |
| `freebsd/dfly` | FreeBSD | DragonFly BSD | `master` | Full | DragonFly is a fork of FreeBSD which is similar enough that no modifications need be made. |
| `haiku` | Haiku | | 1.1.0 | Partial | | | `haiku` | Haiku | | 1.1.0 | Partial | |
| `windows` | Microsoft Windows | | 1.2.0 | Full | Relies on wmic.exe and systeminfo.exe | | `windows` | Microsoft Windows | | 1.2.0 | Full | Relies on wmic.exe and systeminfo.exe |
| `windows/cygwin` | Microsoft Windows | Cygwin | 1.2.0 | Partial | Relies on wmic.exe and systeminfo.exe, issues with machine detection | | `windows/cygwin` | Microsoft Windows | Cygwin | 1.2.0 | Partial | Relies on wmic.exe and systeminfo.exe, issues with machine detection |

10
build_alternate.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
cat probing.1 | tee abbiefetch
cat system_detection.2 | tee -a abbiefetch
cat hostname_username.3 | tee -a abbiefetch
cat processor_detection.4 | tee -a abbiefetch
cat kernel_info.5 | tee -a abbiefetch
cat gpu_detection.6 | tee -a abbiefetch
cat distro_machine_detection.7 | tee -a abbiefetch
cat display_results.8 | tee -a abbiefetch
chmod +x abbiefetch

View file

@ -24,6 +24,10 @@ fi
if [ "$(uname -s)" = "FreeBSD" ] && [ "$system_type" = "unknown" ]; then if [ "$(uname -s)" = "FreeBSD" ] && [ "$system_type" = "unknown" ]; then
system_type="freebsd" system_type="freebsd"
fi fi
if [ "$(uname -s)" = "DragonFly" ] && [ "$system_type" = "unknown" ]; then
system_type="freebsd"
subtype="dfly"
fi
if [ "$(uname -s)" = "NetBSD" ] && [ "$system_type" = "unknown" ]; then if [ "$(uname -s)" = "NetBSD" ] && [ "$system_type" = "unknown" ]; then
system_type="netbsd" system_type="netbsd"
fi fi