wok diff ventoy/stuff/TazVentoyPlugson.sh @ 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
line diff
     1.1 --- a/ventoy/stuff/TazVentoyPlugson.sh	Mon Dec 20 10:05:11 2021 +0000
     1.2 +++ b/ventoy/stuff/TazVentoyPlugson.sh	Mon Dec 20 17:39:32 2021 +0000
     1.3 @@ -10,11 +10,15 @@
     1.4  dev="${1:-$(blkid | sed '/Ventoy/!d;s|:.*||;q')}"
     1.5  DISK=${dev%[0-9]*}; DISK=${DISK%p}
     1.6  HOST="${2:-127.0.0.1}:${3:-24681}"
     1.7 -fstype="$(blkid $dev | sed 's|.*TYPE="||;s|".*||')"
     1.8 +fstype="$(blkid $dev | sed 's|.* TYPE="||;s|".*||')"
     1.9 +case "$fstype" in
    1.10 +exfat)	fstype="exFAT";;
    1.11 +ntfs)	fstype="NTFS";;
    1.12 +esac
    1.13  mkdir /tmp/mnt$$
    1.14  mount ${dev/1/2} /tmp/mnt$$
    1.15  version="$(sed '/VERSION=/!d;s|.*="||;s|"||' /tmp/mnt$$/grub/grub.cfg)"
    1.16 -[ -e /EFI/BOOT/grubx64_real.efi ] && secureboot=1 || secureboot=0
    1.17 +[ -e /tmp/mnt$$/EFI/BOOT/grubx64_real.efi ] && secureboot=1 || secureboot=0
    1.18  umount /tmp/mnt$$
    1.19  blkid $DISK | grep -q 'PTTYPE="gpt"' && partstyle=1 || partstyle=0
    1.20  echo PATH=$(dirname $0)/tool/i386:$PATH Plugson ${HOST/:/ } $(dirname $0) "$DISK" $version "$fstype" $partstyle $secureboot > VentoyPlugson.log