7 changed files with 46 additions and 11 deletions
@ -0,0 +1,2 @@ |
|||||
|
*.bak |
||||
|
|
@ -0,0 +1,38 @@ |
|||||
|
#! /usr/bin/bash |
||||
|
# Datei: power.sh |
||||
|
|
||||
|
declare -A power |
||||
|
|
||||
|
# 1. Zeile (Orange Pi Zero 2W), x-Index: 0 |
||||
|
|
||||
|
power[0,0]="Orange Pi Zero 2W" |
||||
|
power[0,1]="1,014" |
||||
|
power[0,2]="1,99" |
||||
|
|
||||
|
# 2. Zeile (Banana Pi BPI-F3) x-Index: 1 |
||||
|
power[1,0]="Banana Pi BPI-F3" |
||||
|
power[1,1]="3,6" |
||||
|
power[1,2]="6,8" |
||||
|
|
||||
|
# 3. Zeile (Raspberry Pi 16GB), x-Index: 2 |
||||
|
power[2,0]="Raspberry Pi 16GB" |
||||
|
power[2,1]="2,25" |
||||
|
power[2,2]="8,0" |
||||
|
|
||||
|
# 4. Zeile (Radxa Zero), x-Index: 3 |
||||
|
power[3,0]="Radxa Zero" |
||||
|
power[3,1]="-" |
||||
|
power[3,2]="-" |
||||
|
# 2. Spalte: Stromaufnahme Leerlauf |
||||
|
|
||||
|
# 3. Spalte: Stromaufnahme unter Last |
||||
|
power[2,3]="" |
||||
|
|
||||
|
printf "%-25s %-10s %-10s\n" "SBC" "idle" "load" |
||||
|
|
||||
|
#printf 'SBC\tload\tidle\n'; |
||||
|
for ((x=0; x<4; x++)) |
||||
|
do |
||||
|
printf "%-20s %-10s %-10s\n" "${power[${x},0]}" "${power[${x},1]}W" "${power[${x},2]}W" |
||||
|
done |
||||
|
|
Loading…
Reference in new issue