From b93b4f5f3585190bd59b25c9a8b62fb4c23debe3 Mon Sep 17 00:00:00 2001 From: grwl Date: Sun, 28 Oct 2012 02:24:17 +0100 Subject: [PATCH] dom0+vm/usb: refactoring --- misc/usb_add_change | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/usb_add_change b/misc/usb_add_change index 24dd2ac5..013acd0d 100755 --- a/misc/usb_add_change +++ b/misc/usb_add_change @@ -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