]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix the repo missing for Kylin V10 SP2 Server
authorlongpanda <admin@ventoy.net>
Tue, 26 Jul 2022 15:08:40 +0000 (23:08 +0800)
committerlongpanda <admin@ventoy.net>
Tue, 26 Jul 2022 15:08:40 +0000 (23:08 +0800)
IMG/cpio/ventoy/ventoy_chain.sh

index f6a807ed71193472cf5586c0753c3fe445b184bb..fbde4c87b95b37d7d56faea3399239572c773267 100644 (file)
@@ -362,6 +362,13 @@ ventoy_get_os_type() {
     fi
     
     
+    #Kylin V10 Server
+    if [ -f /usr/sbin/dhclient ]; then
+        if $BUSYBOX_PATH/strings /usr/sbin/dhclient | $GREP -i -q -m1 openeuler; then
+            echo 'openEuler'; return
+        fi
+    fi
+    
     
     echo "default"
 }