i-have-a-dreambox.com | Dreambox - Support

Register Calendar Members List Team Members Galerie to Portal Go to the Main Page

Boardrules Frequently Asked Questions Statistik Statistik Search Pinwand Dreambox Blog Ihad/Gemini Fan-Shop
i-have-a-dreambox.com | Dreambox - Support » ...::: Archiv - Support für ältere Dreambox Modelle :::... » ...::: Dreambox und Images DM800 :::... » Allgemeines zur DM800 » lsusb in shell script » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page lsusb in shell script
Author
Post « Previous Thread | Next Thread »
a.key
Newbie


Registration Date: 21.01.2010
Posts: 59
Which box: DM 800S
External Storage: HDD
Which Image: siehe Signatur

lsusb in shell script Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi.
Sometimes it's necessary to list USB devices connected to your box. On a a normal Linux machine you'd use lsusb program but on some dreambox images it may not be available.

So here's a shell script that will do the job for you.

The script is based on a work of somebody else (don't know who). Some time ago I found it on the internet but...
1. it was broken
2. after fixing it, it didn't show device names just like the original program does.

My modification will get device names from /usr/share/usb.ids or /usr/share/usb.ids.gz depending on what is avialable in your system. The script will try to download this file for you if you don't have any of the above.

Tested on my dm800 - works like a charm.

Just gunzip, untar it to /usr/bin. In the package there's a directory structure already so you can just copy it as it is.

Make sure this script is executable after unpacking (chmod +x /usr/bin/lsusb).


Edit: I found out whom I got the original script from - It's taken from lataamo's plugin so original credits to him.
Edit2: I just found the same code in one of the DE1.33 scripts so I'm not sure who wrote it first Augenzwinkern .

Enjoy.



Thank the author for this topic

6 Users have thanked for this topic (willow1655, inah, docdance, antei, kliti, Mistrale).


Attachment:
unknown lsusb.tar.gz (793 Byte, 499 downloads)

This post has been edited 2 time(s), it was last edited by a.key: 14.01.2011 20:10.

14.01.2011 16:08 a.key is offline Homepage of a.key Search for Posts by a.key Add a.key to your Buddy List
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
i-have-a-dreambox.com | Dreambox - Support » ...::: Archiv - Support für ältere Dreambox Modelle :::... » ...::: Dreambox und Images DM800 :::... » Allgemeines zur DM800 » lsusb in shell script

Privacy policy | Team | Suchen | Hilfe


Powered by Burning Board 2.3.6 © 2001-2003 WoltLab GbR