Thanks!
El dijous 10 d’abril de 2014 2:40:47 UTC+2, dickelbeck va escriure: > > > Toni, > > lsusb needs to see a directory in existence, else it goes quietly into the > night. I devised this script fragment to solve the problem. > Run it early in one of your boot scripts, it can be added as part of en > existing script. > > for i in /sys/bus/usb/devices/usb*; do > echo $i > if [ -d $i ]; then > mm=`cat $i/dev` > > major=$(echo "$mm" | sed 's/:.*//') > minor=$(echo "$mm" | sed 's/.*://') > > busnum=$(printf "%03d" `cat $i/busnum`) > devnum=$(printf "%03d" `cat $i/devnum`) > > mkdir -p /dev/bus/usb/$busnum > mknod /dev/bus/usb/$busnum/$devnum c $major $minor > fi > done > > > I think /dev/bus/usb is a directory that must exist for lsusb to happy. > > > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
