Created
April 15, 2019 01:08
-
-
Save dapperfu/b1dedc1af296fce061970a7dc85f3ec5 to your computer and use it in GitHub Desktop.
WTF got plugged in?
This file contains hidden or 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
#!/usr/bin/env bash | |
function pause(){ | |
read -p "$*" | |
} | |
# Baseline | |
find /dev > /tmp/a | |
lsusb -v >> /tmp/a | |
xinput list >> /tmp/a | |
# Wait to plug in device. | |
pause 'Plug in USB device and press [Enter] to continue...' | |
# After. | |
find /dev > b | |
lsusb -v >> b | |
xinput list >> b | |
# Difference? | |
diff a b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment