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