From 83d91c525fa7e5c5a1866275a8f6bdcd09d62d90 Mon Sep 17 00:00:00 2001 From: longpanda Date: Mon, 8 Mar 2021 16:18:22 +0800 Subject: [PATCH] support new veket_20 --- IMG/cpio/ventoy/hook/debian/veket-hook.sh | 7 +++++++ IMG/cpio/ventoy/hook/debian/ventoy-hook.sh | 6 ++++++ IMG/cpio/ventoy/ventoy_chain.sh | 2 ++ 3 files changed, 15 insertions(+) diff --git a/IMG/cpio/ventoy/hook/debian/veket-hook.sh b/IMG/cpio/ventoy/hook/debian/veket-hook.sh index 922e2366..5093cbb1 100644 --- a/IMG/cpio/ventoy/hook/debian/veket-hook.sh +++ b/IMG/cpio/ventoy/hook/debian/veket-hook.sh @@ -20,3 +20,10 @@ $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 diff --git a/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh b/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh index aafb506a..9c4b50fd 100644 --- a/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh @@ -28,6 +28,12 @@ ventoy_get_debian_distro() { 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 diff --git a/IMG/cpio/ventoy/ventoy_chain.sh b/IMG/cpio/ventoy/ventoy_chain.sh index 1c52abb8..73908326 100644 --- a/IMG/cpio/ventoy/ventoy_chain.sh +++ b/IMG/cpio/ventoy/ventoy_chain.sh @@ -315,6 +315,8 @@ ventoy_get_os_type() { 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