Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Update for 10.5.6' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Update for 10.5.6
Authored by: lincd0 on Dec 16, '08 09:42:55AM

system_profiler has changed in 10.5.6, and the above script no longer works. Now I use:

system_profiler SPUSBDataType | grep ID: | grep -v 'Location\|PCI' | cut -d: -f2 | paste -s -d '\t\n' - | sort > ~/.usb

to save the state, and

usb=$( system_profiler SPUSBDataType | grep ID: | grep -v 'Location\|PCI' | cut -d: -f2 | paste -s -d '\t\n' - | sort ) ; echo "$usb" | cmp -s ~/.usb - & echo " Added\n\t Deleted\n" ; echo "$usb" | comm -3 ~/.usb -

to compare.

[ Reply to This | # ]