exit
fi
-if ! dmidecode -t system | grep -F "Version: ThinkPad X200" &>/dev/null; then
+# on one machine, I could do this:
+# dmidecode -t system | grep -F "Version: ThinkPad X200"
+# however, on another, the version field just says invalid data.
+# todo: figure out some better way to check if we are on
+# an x200.
+
+if ! dmidecode | grep -i thinkpad &>/dev/null; then
echo "not x200, exiting"
exit 0
fi