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"
|
VERSION_URL="https://gitea.ris-universe.eu/w12/w12-asm-os/raw/branch/main/version.txt"
|
||||||
LOCAL_VERSION="1.0.3"
|
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() {
|
function check_for_update() {
|
||||||
echo "ASM-Menü Version $LOCAL_VERSION"
|
echo "ASM-Menü Version $LOCAL_VERSION"
|
||||||
echo "Prüfe auf Updates ..."
|
echo "Prüfe auf Updates ..."
|
||||||
@@ -231,7 +219,7 @@ while true; do
|
|||||||
8 "Update asm-Script" \
|
8 "Update asm-Script" \
|
||||||
9 "WLAN konfigurieren" \
|
9 "WLAN konfigurieren" \
|
||||||
10 "System herunterfahren" \
|
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
|
case $OPTION in
|
||||||
1) setup_autologin ;;
|
1) setup_autologin ;;
|
||||||
@@ -244,7 +232,7 @@ while true; do
|
|||||||
8) update_script ;;
|
8) update_script ;;
|
||||||
9) configure_wifi_nmtui ;;
|
9) configure_wifi_nmtui ;;
|
||||||
10) shutdown_system ;;
|
10) shutdown_system ;;
|
||||||
11) touch /tmp/asm_quit ; break ;;
|
11) break ;;
|
||||||
*) echo "Ungültige Auswahl";;
|
*) echo "Ungültige Auswahl";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user