]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/ventoy_chain.sh
Support Lenovo EasyStartup
[Ventoy.git] / IMG / cpio / ventoy / ventoy_chain.sh
index af1747a6c026788c32924b9eea2ed4f79640cf78..3b12922b33d71b2d9f8eb2ad4dc69ce484226dcd 100644 (file)
@@ -58,6 +58,12 @@ ventoy_get_os_type() {
 
     # rhel6/CentOS6 and all other distributions based on them
     elif $GREP -q 'el6' /proc/version; then
 
     # rhel6/CentOS6 and all other distributions based on them
     elif $GREP -q 'el6' /proc/version; then
+        if [ -f /sbin/detectcd ]; then
+            if $GREP -q -i 'LENOVO-EasyStartup' /sbin/detectcd; then
+                echo 'easystartup'; return
+            fi
+        fi
+
         echo 'rhel6'; return
 
     # rhel7/CentOS7/rhel8/CentOS8 and all other distributions based on them
         echo 'rhel6'; return
 
     # rhel7/CentOS7/rhel8/CentOS8 and all other distributions based on them
@@ -153,10 +159,9 @@ ventoy_get_os_type() {
             echo 'rhel7'; return
         elif $GREP -q 'openEuler' /etc/os-release; then
             echo 'openEuler'; return
             echo 'rhel7'; return
         elif $GREP -q 'openEuler' /etc/os-release; then
             echo 'openEuler'; return
-       elif $GREP -q 'fuyu' /etc/os-release; then
+        elif $GREP -q 'fuyu' /etc/os-release; then
             echo 'openEuler'; return   
         fi
             echo 'openEuler'; return   
         fi
-
     fi
     
     if $BUSYBOX_PATH/dmesg | $GREP -q -m1 "Xen:"; then
     fi
     
     if $BUSYBOX_PATH/dmesg | $GREP -q -m1 "Xen:"; then