Browse code

Create usb_max_current.sh

Stefan Höhn authored on25/09/2016 16:16:40 • GitHub committed on25/09/2016 16:16:40
Showing1 changed files

1 1
new file mode 100644
... ...
@@ -0,0 +1,3 @@
1
+#!/bin/bash
2
+wert=$(lsusb -v 2>&1 | grep MaxPower | sed 's/MaxPower//;s/mA//') 
3
+echo $(dc <<< '[+]sa[z2!>az2!>b]sb'"${wert[*]}lbxp") mA