OSDN Git Service

disable update notifier on live disk
authorpaperbenni <paperbenni@gmail.com>
Wed, 23 Sep 2020 14:58:14 +0000 (16:58 +0200)
committerpaperbenni <paperbenni@gmail.com>
Wed, 23 Sep 2020 14:58:14 +0000 (16:58 +0200)
autostart.sh
programs/quickmenu

index 6706fe6..6e7285c 100755 (executable)
@@ -444,7 +444,7 @@ if [ -e ~/.config/instantos/autostart.sh ]; then
 fi &
 
 # update notifier
-if ! iconf -i noupdates; then
+if ! iconf -i noupdates && [ -z "$ISLIVE" ]; then
     sleep 2m
     if checkinternet; then
         instantupdatenotify
index 629f7cd..06b4275 100755 (executable)
@@ -124,6 +124,10 @@ new category' | instantmenu -bw 4 -C -l 7 -w -1)"
             exit
         fi
 
+        if [ -n "$SCRIPTNAME" ]
+        then
+            exit
+        fi
         touch "$SCRIPTNAME" || {
             imenu -m "invalid script name"
             exit