##!/bin/bash # STRING="06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8180L 802.11b MAC (rev 20)" STRING2=`/sbin/lspci | grep RTL` if [ $STRING = $STRING2 ]; then echo "woot this works" else echo "shit" fi