asmmenu.sh aktualisiert

This commit is contained in:
w12
2025-05-16 20:24:45 +02:00
parent bebc3baaab
commit 9329ed8c21

View File

@@ -8,6 +8,17 @@ UPDATE_URL="https://gitea.ris-universe.eu/w12/w12-asm-os/raw/branch/main/asmmenu
VERSION_URL="https://gitea.ris-universe.eu/w12/w12-asm-os/raw/branch/main/version.txt"
LOCAL_VERSION="1.0.2"
UPTIME=$(cut -d. -f1 /proc/uptime)
if [ "$UPTIME" -lt 120 ]; then
rm -f /tmp/asm_quit
fi
# Wenn Marker existiert → nicht nochmal starten
if [ -f /tmp/asm_quit ]; then
echo "[i] Menü wurde zuvor beendet starte nicht erneut."
exit 0
fi
function check_for_update() {
echo "ASM-Menü Version $LOCAL_VERSION"
echo "Prüfe auf Updates ..."