13 lines
237 B
Bash
Executable File
13 lines
237 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
scriptRoot="$(dirname "$0")/.."
|
|
hostname=$(hostname)
|
|
|
|
# get current status
|
|
thermal=$(${scriptRoot}/thermal.sh)
|
|
|
|
if [[ -n "$thermal" ]]; then
|
|
ntfy pub -T yellow_square -t "Thermal status on $hostname" thermal
|
|
fi
|
|
|