Created
March 2, 2021 16:29
-
-
Save kbingham/159110271926ebd577a5ff9eedbd113b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for m in /sys/bus/media/devices/media*; | |
do | |
mn=`basename $m` | |
model=`cat $m/model` | |
echo $mn: $model | |
done | sort -V; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for v in /sys/class/video4linux/{v4l,video}*; | |
do | |
vn=`basename $v` | |
name=`cat $v/name` | |
echo $vn: $name | |
done | sort -V; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment