#!/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 else echo via detected elif echo elif reached then echo then done fi