usbfilter/scan_new.sh

5 lines
140 B
Bash
Raw Permalink Normal View History

2014-08-03 12:21:04 +02:00
#!/bin/bash
lsusb | awk '{print $6}' | while read line ; do
grep -q "$line" /etc/usb_whitelist || echo "$line is not in whitelist yet"
done