#!/bin/bash set -x SIS="`lspci | grep "VGA"| grep "SIS"`" #echo $SIS VIA="`lspci | grep "VGA"| grep "VIA"`" #echo $VIA if [ "$SIS" = "$VIA" ]; then echo sis detected elif [ "$VIA" = "$SIS" ]; then echo via detected elif echo non of those are detected fi