OSDN Git Service

fix laptop detection
[instantos/instantOS.git] / status.sh
index 0321e96..6d1af85 100755 (executable)
--- a/status.sh
+++ b/status.sh
@@ -71,11 +71,14 @@ while :; do
             if ! [ -e /tmp/instantdarkmode ]; then
                 instantthemes d &
                 touch /tmp/instantdarkmode
+                [ -e /tmp/instantlightmode ] && rm /tmp/instantlightmode
             fi
         else
             if ! [ -e /tmp/instantlightmode ]; then
                 instantthemes l &
                 touch /tmp/instantlightmode
+                [ -e /tmp/instantdarkmode ] && rm /tmp/instantdarkmode
+
             fi
         fi
     fi