#!/bin/sh

if [ "$1" = "post" ] && [ "$2" = "suspend" ]; then
	for device in /sys/bus/usb/devices/*; do
		[ "$(cat "$device/idVendor")" = "12cf" ] || continue
		[ "$(cat "$device/idProduct")" = "0c04" ] || continue
		echo 0 > "$device/authorized"
		echo 1 > "$device/authorized"
	done
fi