Client Kobo (overlay trmnl-kobo) + README + sonde usage
This commit is contained in:
18
kobo/monitorink.sh
Executable file
18
kobo/monitorink.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
# Monitorink — point d'entrée lancé par NickelMenu.
|
||||
# Configure quelques paramètres puis lance la boucle d'affichage.
|
||||
|
||||
BASE="/mnt/onboard/.adds/Monitorink"
|
||||
cd "$BASE" || exit 1
|
||||
|
||||
# --- Configuration (adapter au besoin) ---
|
||||
export MONITORINK_URL="http://monitorink.homelab.nestor-server.fr/image.png"
|
||||
export MONITORINK_REFRESH=600
|
||||
|
||||
# Gouverneur CPU économe pendant les phases actives.
|
||||
for gov in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do
|
||||
echo ondemand > "$gov" 2>/dev/null
|
||||
done
|
||||
|
||||
# Lance la boucle (journalisée). exec pour ne pas laisser de process orphelin.
|
||||
exec sh "$BASE/monitorinkloop.sh" >> /tmp/monitorink.log 2>&1
|
||||
Reference in New Issue
Block a user