Hello,

just hacked a little script together which uses the sysfs-structure
for finding any BlackBerries (well, at least my BB8100). After some
small sanity checks the script disconnects the BlackBerry from
usb-storage using the 'unbind' file.

Instead of a script, it would of course also be possible to add a
C/C++-function to libbarry. The logic is pretty straight forward,
however writing it in C/C++ would require quite some more lines ;) For
the adventurous wanting to write this code, please see these notes
about _not_ using libsysfs:
<http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/filesystems/sysfs.txt>.

I hope this script helps somebody and explains a bit more how
usb-storage can be kept loaded while using barry. I provide this
script for inclusion in barry as utility, testcase and/or
documentation. Have fun wit it!

Cheers,
Niels

Attachment: barry-unbind-storage.sh
Description: Bourne shell script

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to