#!/bin/sh # FIXME: Ignore USB hubs. [ "$DEVNUM" = "001" ] && exit 0 NAME=`basename ${DEVPATH} | tr . _` XS_KEY="qubes-usb-devices/$NAME" xenstore-rm "$XS_KEY"