mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 00:23:30 +00:00
Organize companion code and materials by book part: part-01/ Foundations part-02/ Kernel & driver fundamentals part-03/ Character & block devices part-04/ Networking & storage part-05/ Buses & advanced topics part-06/ Debugging & performance part-07/ Real-world drivers appendices/ Supplementary material README.md Overview and build instructions
10 lines
312 B
Bash
Executable file
10 lines
312 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# watch.sh - Tail /var/log/messages filtered to USB events.
|
|
|
|
DUR=${DUR:-60}
|
|
|
|
echo "Watching /var/log/messages for USB events for ${DUR} seconds."
|
|
echo "Plug/unplug USB devices to generate events."
|
|
|
|
timeout "${DUR}" tail -F /var/log/messages | grep -iE 'usb|ugen|uftdi|uplcom|uslcom|myfirst_usb|uhub'
|