dom0+vm/usb: refactoring

This commit is contained in:
grwl 2012-10-28 02:24:17 +01:00
parent 073ce8a683
commit b93b4f5f35

View File

@ -22,7 +22,7 @@ XSNAME=`echo ${NAME} | tr . _`
#DESC=`python -c "dev='%d-%d' % (int('${BUSNUM}'.lstrip('0')), (int('${DEVNUM}'.lstrip('0'))-1)); from xen.util import vusb_util; print vusb_util.get_usbdevice_info(dev);"`
DESC="${ID_VENDOR_ID}:${ID_MODEL_ID} ${ID_SERIAL}"
VERSION=`cat /sys/bus/usb/devices/${NAME}/version`
VERSION=`cat /sys/$DEVPATH/version`
if [ "${VERSION}" = " 1.00" -o "${VERSION}" = " 1.10" ] ; then
VERSION=1
elif [ "${VERSION}" = " 2.00" ] ; then