]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/ventoy.sh
1.0.07 release
[Ventoy.git] / IMG / cpio / ventoy / ventoy.sh
index 6426dc83bbea3953218f4c1c285ec22347f64e13..2517f0b12688713f8f3dc8efedea2d79adcca6dc 100644 (file)
@@ -130,6 +130,7 @@ ventoy_get_os_type() {
             echo 'xen'; return
         elif $GREP -q 'SUSE ' /etc/os-release; then
             echo 'suse'; return
             echo 'xen'; return
         elif $GREP -q 'SUSE ' /etc/os-release; then
             echo 'suse'; return
+       
         fi
     fi
     
         fi
     fi
     
@@ -142,6 +143,27 @@ ventoy_get_os_type() {
         echo 'slackware'; return
     fi
     
         echo 'slackware'; return
     fi
     
+    if [ -e /init ]; then
+        if $GREP -i -q zeroshell /init; then
+            echo 'zeroshell'; return
+        fi
+    fi
+    
+    if $EGREP -q 'ALT ' /proc/version; then
+        echo 'alt'; return
+    fi
+    
+    if $EGREP -q 'porteus' /proc/version; then
+        echo 'debian'; return
+    fi
+    
+    if $GREP -q 'Clear Linux ' /proc/version; then
+        echo 'clear'; return
+    fi
+    
+    if $GREP -q 'artix' /proc/version; then
+        echo 'arch'; return
+    fi
     
     echo "default"
 }
     
     echo "default"
 }