# HG changeset patch # User Pascal Bellard # Date 1640021972 0 # Node ID 4f8f9f8879e3f07efbc2fb8e5892fcf2b71344a5 # Parent dbc597fbeee59d00d09974970cfb4ca02b90b5d5 Up ventoy (1.0.63) diff -r dbc597fbeee5 -r 4f8f9f8879e3 ventoy/receipt --- a/ventoy/receipt Mon Dec 20 10:05:11 2021 +0000 +++ b/ventoy/receipt Mon Dec 20 17:39:32 2021 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="ventoy" -VERSION="1.0.62" +VERSION="1.0.63" CATEGORY="misc" SHORT_DESC="A tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files." MAINTAINER="pascal.bellard@slitaz.org" diff -r dbc597fbeee5 -r 4f8f9f8879e3 ventoy/stuff/TazVentoyPlugson.sh --- a/ventoy/stuff/TazVentoyPlugson.sh Mon Dec 20 10:05:11 2021 +0000 +++ b/ventoy/stuff/TazVentoyPlugson.sh Mon Dec 20 17:39:32 2021 +0000 @@ -10,11 +10,15 @@ dev="${1:-$(blkid | sed '/Ventoy/!d;s|:.*||;q')}" DISK=${dev%[0-9]*}; DISK=${DISK%p} HOST="${2:-127.0.0.1}:${3:-24681}" -fstype="$(blkid $dev | sed 's|.*TYPE="||;s|".*||')" +fstype="$(blkid $dev | sed 's|.* TYPE="||;s|".*||')" +case "$fstype" in +exfat) fstype="exFAT";; +ntfs) fstype="NTFS";; +esac mkdir /tmp/mnt$$ mount ${dev/1/2} /tmp/mnt$$ version="$(sed '/VERSION=/!d;s|.*="||;s|"||' /tmp/mnt$$/grub/grub.cfg)" -[ -e /EFI/BOOT/grubx64_real.efi ] && secureboot=1 || secureboot=0 +[ -e /tmp/mnt$$/EFI/BOOT/grubx64_real.efi ] && secureboot=1 || secureboot=0 umount /tmp/mnt$$ blkid $DISK | grep -q 'PTTYPE="gpt"' && partstyle=1 || partstyle=0 echo PATH=$(dirname $0)/tool/i386:$PATH Plugson ${HOST/:/ } $(dirname $0) "$DISK" $version "$fstype" $partstyle $secureboot > VentoyPlugson.log