dom0+vm/usb: refactoring

This commit is contained in:
grwl 2012-10-28 02:27:06 +01:00
parent c8fa6c44af
commit bb35a6836f

View File

@ -13,8 +13,7 @@
[ "$DEVTYPE" != "usb_device" ] && exit 0
# xenstore doesn't allow dot in key name
NAME=`basename ${DEVPATH}`
XSNAME=`echo ${NAME} | tr . _`
XSNAME=`basename ${DEVPATH} | tr . _`
# FIXME: For some devices (my Cherry keyboard) ID_SERIAL does not
# contain proper human-readable name, should find better method to