19 lines
655 B
Bash
Executable File
19 lines
655 B
Bash
Executable File
#!/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
|