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"
|
VERSION_URL="https://gitea.ris-universe.eu/w12/w12-asm-os/raw/branch/main/version.txt"
|
||||||
LOCAL_VERSION="1.0.2"
|
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() {
|
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 ..."
|
||||||
|
|||||||
Reference in New Issue
Block a user