Skip to content

Instantly share code, notes, and snippets.

@olastor
Created March 20, 2018 07:32
Show Gist options
  • Save olastor/a54d276681ee7af0603556cc4fd87e36 to your computer and use it in GitHub Desktop.
Save olastor/a54d276681ee7af0603556cc4fd87e36 to your computer and use it in GitHub Desktop.
Allows to see info from dmesg command for device only by removing or adding it while running this script
#!/bin/bash
A=$(dmesg)
echo "Remove or add your device now."
sleep 5
B=$(dmesg)
diff <(echo "$A") <(echo "$B")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment