From 96c62b077406db9885c66796eea56177bdb4a9f2 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 19 Jan 2016 12:02:04 +1100 Subject: [PATCH] GPU: Now works on FreeBSD --- fetch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fetch b/fetch index 3a5e77a5..b06563ef 100755 --- a/fetch +++ b/fetch @@ -632,7 +632,7 @@ getcpu () { } getgpu () { - case "os" in + case "$os" in "Linux") ;; @@ -645,8 +645,9 @@ getgpu () { case "$distro" in "FreeBSD") gpu=$(pciconf -lv 2>/dev/null | grep -B 4 "VGA" | grep "device") - gpu=${gpu/device*=/} + gpu=${gpu/device*= /} gpu=${gpu//\'/} + gpu=${gpu// } ;; esac ;;