Browse code

Add files via upload

Extra spaces for better Design

Stefan Höhn authored on13/06/2017 10:49:36 • GitHub committed on13/06/2017 10:49:36
Showing1 changed files

... ...
@@ -1,6 +1,7 @@
1
+ 
1 2
 #!/bin/bash
2 3
 echo ""
3
-echo -e "\e[1;4m ## Maximal current allowed from all USB "
4
+echo -e "\e[1;4m ## Maximal current allowed from all USB Devices"
4 5
 zaehl=$(lsusb -s 001|wc -l)
5 6
 for (( i=1; i <= $zaehl; i++ ))
6 7
 do
... ...
@@ -11,7 +12,7 @@ echo "---------------------------"
11 12
 wert=$(lsusb -v 2>&1 | grep MaxPower | sed 's/MaxPower//;s/mA//') 
12 13
 echo "Bus ∑ $(dc <<< '[+]sa[z2!>az2!>b]sb'"${wert[*]}lbxp") mA"
13 14
 echo ""
14
-echo -e "\e[1;4m ## All devices, maximal current"
15
-wert=$(lsusb -v  2>&1 | grep  '\(id[PV]\|MaxPower\)' | sed 's/idProduct// ; s/idVendor//'|sed 's/^[ \t]*// ; s/0x[A-Za-z0-9]*// '|sed 's/^[[:blank:]]*$/not defined/' )
15
+echo -e "\e[1;4m ## All USB devices, maximal current"
16
+wert=$(lsusb -v  2>&1 | grep  '\(id[PV]\|MaxPower\)' | sed 's/idProduct// ; s/idVendor//'|sed 's/^[ \t]*// ; s/0x[A-Za-z0-9]*//'| sed 's/mA/mA\\n/'|sed 's/^[[:blank:]]*$/ not defined/' )
16 17
 echo -e "\e[0m $wert"
17 18
 echo ""