packages: bsd support
This commit is contained in:
parent
3cc31fb294
commit
bece9da962
16
pfetch
16
pfetch
|
@ -311,20 +311,20 @@ get_pkgs() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
FreeBSD*)
|
FreeBSD*)
|
||||||
# Commands which print packages one per line.
|
pkg info
|
||||||
command -v pkg && pkg info
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*BSD*)
|
OpenBSD*)
|
||||||
# Commands which print packages one per line.
|
printf '%s\n' /var/db/pkg/*/
|
||||||
command -v pkginfo && pkginfo -i
|
;;
|
||||||
command -v pkg && pkg list
|
|
||||||
command -v pkg_info && pkg_info
|
NetBSD*)
|
||||||
|
pkg_info
|
||||||
;;
|
;;
|
||||||
esac | wc -l
|
esac | wc -l
|
||||||
`
|
`
|
||||||
|
|
||||||
log pkgs "$packages" >&6
|
log pkgs "${packages:-?}" >&6
|
||||||
}
|
}
|
||||||
|
|
||||||
get_memory() {
|
get_memory() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user