gpu_driver: Add linux support.

This commit is contained in:
Dylan Araps 2017-08-29 09:22:56 +10:00
parent ae2f270261
commit 7e94fec6fc
3 changed files with 11 additions and 1 deletions

View file

@ -2258,6 +2258,14 @@ get_locale() {
locale="$sys_locale"
}
get_gpu_driver() {
case "$os" in
"Linux")
gpu_driver="$(lspci -nnk | awk -F ': ' '/VGA/{nr[NR+2]}; NR in nr {print $2}')"
;;
esac
}
get_cols() {
if [[ "$color_blocks" == "on" ]]; then
# Convert the width to space chars.