asmmenu.sh aktualisiert
This commit is contained in:
16
asmmenu.sh
16
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
|
||||
|
||||
Reference in New Issue
Block a user