wok diff ventoy/stuff/TazVentoyPlugson.sh @ rev 24953
updated nagvis and nagvis-doc (1.9.18 -> 1.9.31)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 15:05:31 2022 +0100 (2022-04-23) |
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 Sat Apr 23 15:05:31 2022 +0100 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