Files
blomarchy/bin/blob-hw-match
T

8 lines
254 B
Bash
Executable File

#!/bin/bash
# blob:summary=Match against the computer's DMI product name or product family (case-insensitive).
# blob:args=<pattern>
grep -qi "$1" /sys/class/dmi/id/product_name 2>/dev/null ||
grep -qi "$1" /sys/class/dmi/id/product_family 2>/dev/null