wok-current rev 24160
Up ventoy (1.0.63)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 20 17:39:32 2021 +0000 (2021-12-20) |
parents | dbc597fbeee5 |
children | be11ceb31dcf |
files | ventoy/receipt ventoy/stuff/TazVentoyPlugson.sh |
line diff
1.1 --- a/ventoy/receipt Mon Dec 20 10:05:11 2021 +0000 1.2 +++ b/ventoy/receipt Mon Dec 20 17:39:32 2021 +0000 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="ventoy" 1.7 -VERSION="1.0.62" 1.8 +VERSION="1.0.63" 1.9 CATEGORY="misc" 1.10 SHORT_DESC="A tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files." 1.11 MAINTAINER="pascal.bellard@slitaz.org"
2.1 --- a/ventoy/stuff/TazVentoyPlugson.sh Mon Dec 20 10:05:11 2021 +0000 2.2 +++ b/ventoy/stuff/TazVentoyPlugson.sh Mon Dec 20 17:39:32 2021 +0000 2.3 @@ -10,11 +10,15 @@ 2.4 dev="${1:-$(blkid | sed '/Ventoy/!d;s|:.*||;q')}" 2.5 DISK=${dev%[0-9]*}; DISK=${DISK%p} 2.6 HOST="${2:-127.0.0.1}:${3:-24681}" 2.7 -fstype="$(blkid $dev | sed 's|.*TYPE="||;s|".*||')" 2.8 +fstype="$(blkid $dev | sed 's|.* TYPE="||;s|".*||')" 2.9 +case "$fstype" in 2.10 +exfat) fstype="exFAT";; 2.11 +ntfs) fstype="NTFS";; 2.12 +esac 2.13 mkdir /tmp/mnt$$ 2.14 mount ${dev/1/2} /tmp/mnt$$ 2.15 version="$(sed '/VERSION=/!d;s|.*="||;s|"||' /tmp/mnt$$/grub/grub.cfg)" 2.16 -[ -e /EFI/BOOT/grubx64_real.efi ] && secureboot=1 || secureboot=0 2.17 +[ -e /tmp/mnt$$/EFI/BOOT/grubx64_real.efi ] && secureboot=1 || secureboot=0 2.18 umount /tmp/mnt$$ 2.19 blkid $DISK | grep -q 'PTTYPE="gpt"' && partstyle=1 || partstyle=0 2.20 echo PATH=$(dirname $0)/tool/i386:$PATH Plugson ${HOST/:/ } $(dirname $0) "$DISK" $version "$fstype" $partstyle $secureboot > VentoyPlugson.log