]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
support new veket_20
authorlongpanda <admin@ventoy.net>
Mon, 8 Mar 2021 08:18:22 +0000 (16:18 +0800)
committerlongpanda <admin@ventoy.net>
Mon, 8 Mar 2021 08:18:22 +0000 (16:18 +0800)
IMG/cpio/ventoy/hook/debian/veket-hook.sh
IMG/cpio/ventoy/hook/debian/ventoy-hook.sh
IMG/cpio/ventoy/ventoy_chain.sh

index 922e23666d349410ba75a5ce7ea9de21effe62a0..5093cbb18153ff0ae9e442f30f035c71a255ddc0 100644 (file)
 $SED '1 apmedia=usbhd'  -i /init
 $SED "/^ *HAVE_PARTS=/a\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/veket-disk.sh"  -i /init
 $SED "/^ *HAVE_PARTS=/a\ HAVE_PARTS='ventoy|iso9660'"  -i /init
 $SED '1 apmedia=usbhd'  -i /init
 $SED "/^ *HAVE_PARTS=/a\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/veket-disk.sh"  -i /init
 $SED "/^ *HAVE_PARTS=/a\ HAVE_PARTS='ventoy|iso9660'"  -i /init
+
+if [ -d /dev ]; then
+    [ -e /dev/null ] || $BUSYBOX_PATH/mknod /dev/null c 1 3
+else
+    $BUSYBOX_PATH/mkdir /dev
+    $BUSYBOX_PATH/mknod /dev/null c 1 3
+fi
index aafb506acc01f5c90bcf30802c91f08421106302..9c4b50fd303dde3193f8fed43e11def896b71a4f 100644 (file)
@@ -28,6 +28,12 @@ ventoy_get_debian_distro() {
         fi
     fi
     
         fi
     fi
     
+    if [ -e /DISTRO_SPECS ]; then
+        if $GREP -q veket /DISTRO_SPECS; then
+            echo 'veket'; return
+        fi
+    fi
+    
     if [ -e /init ]; then
         if $GREP -q PUPPYSFS /init; then
             if $GREP -q VEKETSFS /init; then
     if [ -e /init ]; then
         if $GREP -q PUPPYSFS /init; then
             if $GREP -q VEKETSFS /init; then
index 1c52abb8f3a60bda778fc1b3604a3ab3d420794a..7390832671f48eb3feb73fa1405aadb9afd8d1f0 100644 (file)
@@ -315,6 +315,8 @@ ventoy_get_os_type() {
     if [ -f /DISTRO_SPECS ]; then
         if $GREP -q '[Pp]uppy' /DISTRO_SPECS; then
             echo 'debian'; return
     if [ -f /DISTRO_SPECS ]; then
         if $GREP -q '[Pp]uppy' /DISTRO_SPECS; then
             echo 'debian'; return
+        elif $GREP -q 'veket' /DISTRO_SPECS; then
+            echo 'debian'; return
         fi
     fi
     
         fi
     fi