X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;ds=sidebyside;f=x4%2Fsanity_check;h=749a3ea3753f658944ea284d4511fb60255b48fa;hb=8c587a0277216e4af9865dedfca249044c1ed875;hp=62a23eab2342ebc7c189e1604e0d9574fc87de35;hpb=731a145eca3424118c9dfc6bb36d63c3b391e70c;p=khatus.git diff --git a/x4/sanity_check b/x4/sanity_check index 62a23ea..749a3ea 100755 --- a/x4/sanity_check +++ b/x4/sanity_check @@ -22,6 +22,8 @@ sensors_fork_all() { ./bin/khatus_x4_sensor_energy & ./bin/khatus_x4_sensor_memory & ./bin/khatus_x4_sensor_loadavg & + ./bin/khatus_x4_sensor_temp -i 1 -- -z 0 & + ./bin/khatus_x4_sensor_disk -- -f / & } sensor_read_one() { @@ -44,7 +46,9 @@ sensors_read_all() { mpd="$(sensor_read_one ${dir}/khatus_x4_sensor_mpd/out/status)" mem="$(sensor_read_one ${dir}/khatus_x4_sensor_memory/out/percent_used)" load="$(sensor_read_one ${dir}/khatus_x4_sensor_loadavg/out/load_avg_1min)" - echo "E[${battery_state} ${battery_percentage}] M:${mem}% L:${load} [${mpd}] [$bluetooth_controllers $bluetooth_devices] ${datetime}" + temp="$(sensor_read_one ${dir}/khatus_x4_sensor_temp/out/thermal_zone0)" + disk="$(sensor_read_one ${dir}/khatus_x4_sensor_disk/out/disk_usage_percentage)" + echo "E[${battery_state} ${battery_percentage}] M:${mem}% L:${load} T:${temp}°C D:${disk}% [${mpd}] [$bluetooth_controllers $bluetooth_devices] ${datetime}" sleep 1 done }