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