From ca1fc77e90b3f38400070e080149ee780db85772 Mon Sep 17 00:00:00 2001 From: "Jules Sam. Randolph" Date: Fri, 15 Jun 2018 15:27:01 -0400 Subject: [PATCH] Version 3.0 fixes #13 fixes #12 fixes #11 fixes #8 fixes #14 --- .editorconfig | 15 + .gitignore | 1 + bootiso | 2195 ++++++++++++++++++++--------------- changelog.md | 18 +- images/bootiso-ay.png | Bin 0 -> 580126 bytes images/bootiso-d-no-usb.png | Bin 0 -> 317979 bytes images/bootiso-p.png | Bin 0 -> 269271 bytes images/bootiso.png | Bin 14931 -> 0 bytes readme.md | 166 ++- 9 files changed, 1417 insertions(+), 978 deletions(-) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 images/bootiso-ay.png create mode 100644 images/bootiso-d-no-usb.png create mode 100644 images/bootiso-p.png delete mode 100644 images/bootiso.png diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..daf3718 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +[bootiso] + +indent_style = space +indent_size = 2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/bootiso b/bootiso index 08acea1..ee22c19 100755 --- a/bootiso +++ b/bootiso @@ -1,70 +1,9 @@ #!/bin/bash +# shellcheck disable=SC2181 +# # Author: jules randolph https://github.com/jsamr # License: MIT -# Version 2.6.0 -# -# Create a bootable USB from any ISO securely. -# Usage: bootiso [...] -# bootiso --dd [...] -# bootiso [...] -# -# The default action as per first synopsis is to install an ISO file to a USB device with rsync. -# Option and action flags can be stacked in their POSIX form. -# -# ACTION FLAGS -# -# You can change the action with bellow flags: -# -# -h, --help, help Display this help message and exit. -# -v, --version Display version and exit. -# -l, --list-usb-drives List available USB drives and exit. -# -f, --format Format selected USB drive and exit. -# --dd Install ISO with `dd' utility instead of mounting + `rsync'. -# Does not allow bootloader installation with syslinux. -# OPTION FLAGS -# -# -d, --device Select block file as USB device. -# If is not connected through USB, `bootiso' will fail and exit. -# Device block files are usually situated in /dev/sdX or /dev/hdX. -# You will be prompted to select a device if you don't use this option. -# -t, --type Format to `' instead of standard FAT32 (vfat). Supported types: vfat exfat ntfs ext3 ext4 f2fs. -# Only works with `install-rsync' and `format' actions. -# -L, --label