mirror of
https://github.com/simple64/simple64.git
synced 2026-09-08 13:22:44 +02:00
10 lines
201 B
Bash
Executable File
10 lines
201 B
Bash
Executable File
#!/bin/bash
|
|
|
|
FILES=/dev/hidraw*
|
|
for f in $FILES
|
|
do
|
|
FILE=${f##*/}
|
|
DEVICE="$(cat /sys/class/hidraw/${FILE}/device/uevent | grep HID_NAME | cut -d '=' -f2)"
|
|
printf "%s \t %s\n" $FILE "$DEVICE"
|
|
done
|