]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/ventoy.sh
1. add Italian languare, translated by AverageUser2
[Ventoy.git] / IMG / cpio / ventoy / ventoy.sh
index 6da1e7d0c3bbb23389cf35e92ae956f70813e7a4..5beb46df8602cf337529997740183ffd2e349b6e 100644 (file)
@@ -130,6 +130,7 @@ ventoy_get_os_type() {
             echo 'xen'; return
         elif $GREP -q 'SUSE ' /etc/os-release; then
             echo 'suse'; return
+       
         fi
     fi
     
@@ -148,6 +149,40 @@ ventoy_get_os_type() {
         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
+    
+    if $GREP -q 'berry ' /proc/version; then
+        echo 'berry'; return
+    fi
+    
+    if $GREP -q 'Gobo ' /proc/version; then
+        echo 'gobo'; return
+    fi
+    
+    if $GREP -q 'NuTyX' /proc/version; then
+        echo 'nutyx'; return
+    fi
+    
+    if [ -d /gnu ]; then
+        vtLineNum=$($FIND /gnu/ -name guix | $BUSYBOX_PATH/wc -l)
+        if [ $vtLineNum -gt 0 ]; then
+            echo 'guix'; return
+        fi
+    fi
     
     echo "default"
 }