add support for austrumi64-4.3.5.iso/slacko64-7.0.iso

This commit is contained in:
longpanda
2021-01-15 14:09:59 +08:00
parent 2f45cea46e
commit 807d313cd5
15 changed files with 60 additions and 5 deletions

View File

@@ -21,8 +21,6 @@
VTPATH_OLD=$PATH; PATH=$BUSYBOX_PATH:$VTOY_PATH/tool:$PATH
wait_for_usb_disk_ready
vtdiskname=$(get_ventoy_disk_name)
if [ "$vtdiskname" = "unknown" ]; then
vtlog "ventoy disk not found"
@@ -30,6 +28,14 @@ if [ "$vtdiskname" = "unknown" ]; then
exit 0
fi
if check_usb_disk_ready "$vtdiskname"; then
vtlog "check_usb_disk_ready ok"
else
vtlog "check_usb_disk_ready error"
PATH=$VTPATH_OLD
exit 0
fi
ventoy_udev_disk_common_hook "${vtdiskname#/dev/}2"
# blkdev_num=$($VTOY_PATH/tool/dmsetup ls | grep ventoy | sed 's/.*(\([0-9][0-9]*\),.*\([0-9][0-9]*\).*/\1:\2/')