diff options
Diffstat (limited to 'sysutils/screenfetch/files/patch-screenfetch-dev')
-rw-r--r-- | sysutils/screenfetch/files/patch-screenfetch-dev | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/screenfetch/files/patch-screenfetch-dev b/sysutils/screenfetch/files/patch-screenfetch-dev index 49f79ced8def..696f2ecd3266 100644 --- a/sysutils/screenfetch/files/patch-screenfetch-dev +++ b/sysutils/screenfetch/files/patch-screenfetch-dev @@ -22,8 +22,8 @@ cpu="Unknown" fi elif [ "$distro" == "FreeBSD" ]; then -- cpu=$(dmesg | awk -F': ' '/^CPU/ {gsub(/ +/," "); gsub(/\([^\(\)]*\)|CPU /,"", $2); print $2; exit}') -+ cpu=$(sysctl -n hw.model |sed -e 's/ \{2,\}/ /g') +- cpu=$(dmesg | "${AWK}" -F': ' '/^CPU/ {gsub(/ +/," "); gsub(/\([^\(\)]*\)|CPU /,"", $2); print $2; exit}') ++ cpu=$(sysctl -n hw.model) elif [ "$distro" == "DragonFlyBSD" ]; then cpu=$(sysctl -n hw.model) elif [ "$distro" == "OpenBSD" ]; then |