Move remaining code out of bin
[khatus.git] / src / bash / exe / khatus_sensor_energy.sh
diff --git a/src/bash/exe/khatus_sensor_energy.sh b/src/bash/exe/khatus_sensor_energy.sh
new file mode 100644 (file)
index 0000000..53472c8
--- /dev/null
@@ -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
This page took 0.025939 seconds and 4 git commands to generate.