X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=x2%2Fsrc%2Fbash%2Fexe%2Fkhatus_sensor_energy.sh;fp=x2%2Fsrc%2Fbash%2Fexe%2Fkhatus_sensor_energy.sh;h=53472c87ad5f5bb3e4b6119ce5e7fa9ae7d6dd51;hb=499c58a269a00e031302938b5a8f006f23aae451;hp=0000000000000000000000000000000000000000;hpb=4c703fadbdc17d1753d16841582636598f862416;p=khatus.git diff --git a/x2/src/bash/exe/khatus_sensor_energy.sh b/x2/src/bash/exe/khatus_sensor_energy.sh new file mode 100644 index 0000000..53472c8 --- /dev/null +++ b/x2/src/bash/exe/khatus_sensor_energy.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +set -e + +dir_bin="$1" + +stdbuf -o L upower --dump | stdbuf -o L "$dir_bin"/khatus_parse_upower +stdbuf -o L upower --monitor-detail | stdbuf -o L "$dir_bin"/khatus_parse_upower