diff --git a/windows2usb b/windows2usb index 9609fe8..248e001 100755 --- a/windows2usb +++ b/windows2usb @@ -107,7 +107,11 @@ function get_dev_partition_num() { } function write_uefintfs() { - cat "$dirpath/uefi-ntfs.img" > "$1" + if [ -a "$dirpath/uefi-ntfs.img" ]; then + cat "$dirpath/uefi-ntfs.img" > "$1" + elif [ -a "/usr/share/windows2usb/uefi-ntfs.img" ]; then + cat "/usr/share/windows2usb/uefi-ntfs.img" > "$1" + fi } function extract_iso() {