]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/hook/debian/ventoy-hook.sh
LiveCD
[Ventoy.git] / IMG / cpio / ventoy / hook / debian / ventoy-hook.sh
index 05b9487be65432d8078fc7bc972a74f68b1a2c46..161d19b7ce073d249db842e733884447ce9adb29 100644 (file)
@@ -35,6 +35,8 @@ ventoy_get_debian_distro() {
             else
                 echo 'puppy'; return
             fi
+        elif $GREP -m1 -q 'Minimal.*Linux.*Live' /init; then
+            echo 'mll'; return
         fi
     fi
 
@@ -52,14 +54,6 @@ ventoy_get_debian_distro() {
         echo 'pve'; return
     fi
     
-    if $GREP -q '[Dd]eepin' /proc/version; then
-        echo 'deepin'; return
-    fi
-    
-    if $GREP -q '[Uu][Oo][Ss] ' /proc/version; then
-        echo 'deepin'; return
-    fi
-    
     if [ -d /porteus ]; then
         echo 'porteus'; return
     fi
@@ -68,6 +62,14 @@ ventoy_get_debian_distro() {
         echo 'porteus'; return
     fi
     
+    if $GREP -q 'linuxconsole' /proc/version; then
+        echo 'linuxconsole'; return
+    fi
+    
+    if $GREP -q 'vyos' /proc/version; then
+        echo 'vyos'; return
+    fi
+    
     echo 'default'
 }