2019-10-22 16:52:31 +01:00
|
|
|
#!/bin/sh
|
|
|
|
profile="$HOME/.nix-profile/bin/"
|
|
|
|
system="/run/current-system/sw/bin/"
|
|
|
|
|
|
|
|
sensors="$profile/sensors"
|
|
|
|
|
2019-10-22 18:23:59 +01:00
|
|
|
max_temp=`$sensors | $system/egrep -o '[0-9][0-9]\.[0-9].*\(' | $system/cut -d' ' -f 1 | $system/sort | $system/uniq | $system/tail -n 1`
|
2019-10-22 16:52:31 +01:00
|
|
|
|
2019-10-22 18:23:59 +01:00
|
|
|
echo "${max_temp}"
|