From 223f81cdb2e0d80458222f1f8010eeeffad33aa2 Mon Sep 17 00:00:00 2001 From: w12 Date: Fri, 16 May 2025 21:27:49 +0200 Subject: [PATCH] asmmenu.sh aktualisiert --- asmmenu.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/asmmenu.sh b/asmmenu.sh index 8ebc356..da2ba05 100644 --- a/asmmenu.sh +++ b/asmmenu.sh @@ -8,18 +8,6 @@ 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.3" -# Nach Reboot Marker entfernen -UPTIME=$(cut -d. -f1 /proc/uptime) -if [ "$UPTIME" -lt 120 ]; then - rm -f /tmp/asm_quit -fi - -# Falls bereits beendet → nicht erneut starten -if [ "$(tty)" == "/dev/tty1" ] && [ -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 ..." @@ -231,7 +219,7 @@ while true; do 8 "Update asm-Script" \ 9 "WLAN konfigurieren" \ 10 "System herunterfahren" \ - 11 "Beenden" 3>&1 1>&2 2>&3) + 11 "Terminal (nur per Putty(SSH) )" 3>&1 1>&2 2>&3) case $OPTION in 1) setup_autologin ;; @@ -244,7 +232,7 @@ while true; do 8) update_script ;; 9) configure_wifi_nmtui ;; 10) shutdown_system ;; - 11) touch /tmp/asm_quit ; break ;; + 11) break ;; *) echo "Ungültige Auswahl";; esac done