Great Vijay, Excellent Piece of work. Thanks. -- regards Rajesh Kumar R.K
On Wed, May 11, 2011 at 12:23 PM, Vijay Kumar B. <[email protected]>wrote: > Rajesh kumar <rkrajeshkumar87@...> writes: > > Is there any command to list all the usb devices location, like below > > > > $<command> > > /dev/sdc > > /dev/sdb > > I am bit late with the reply, but I guess I have a not so bad solution. > The following script uses HAL to do the trick. > > ------ > for udi in $(hal-find-by-capability --capability storage) > do > bus=$(hal-get-property --udi $udi --key storage.bus) > if [ $bus == usb ]; then > hal-get-property --udi $udi --key block.device > fi > done > ------ > > Regards, > Vijay > > _______________________________________________ > ILUGC Mailing List: > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc > _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
