Skip to content

Commit

Permalink
support new veket_20
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed Mar 8, 2021
1 parent 78df21f commit 83d91c5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions IMG/cpio/ventoy/hook/debian/veket-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions IMG/cpio/ventoy/hook/debian/ventoy-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions IMG/cpio/ventoy/ventoy_chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 83d91c5

Please sign in to comment.