stuff from /flash
[svn42.git] / test_autosuspend.sh
diff --git a/test_autosuspend.sh b/test_autosuspend.sh
new file mode 100755 (executable)
index 0000000..e15eb95
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/zsh
+local devPath
+for idVendor in /sys/bus/usb/devices/*/idVendor; do
+  devPath=${idVendor:h} 
+  if [[ "$(< $idVendor)" == "16c0" && "$(< ${devPath}/idProduct )" == "076b" ]]; then
+    cat ${devPath}/power/autosuspend
+  fi
+done
+
+