From 5bb9bec00e1e63bc7d517490bad3b3b1e43bc947 Mon Sep 17 00:00:00 2001 From: hayao Date: Fri, 2 Oct 2020 21:23:27 +0900 Subject: [PATCH] [update] : Added latest run_archiso.sh --- tools/run_archiso.sh | 118 +++++++++++++++++++++++++-------------------------- 1 file changed, 58 insertions(+), 60 deletions(-) mode change 100644 => 100755 tools/run_archiso.sh diff --git a/tools/run_archiso.sh b/tools/run_archiso.sh old mode 100644 new mode 100755 index 8aadcd10..1ce00cf7 --- a/tools/run_archiso.sh +++ b/tools/run_archiso.sh @@ -15,115 +15,113 @@ set -eu print_help() { - cat << EOF + local usagetext + IFS='' read -r -d '' usagetext < 0 )); then + while getopts 'bdhi:su' flag; do + case "$flag" in b) - boot_type=bios + boot_type='bios' + ;; + d) + mediatype='hd' ;; h) print_help @@ -133,13 +131,13 @@ if [ ${#@} -gt 0 ]; then image="$OPTARG" ;; u) - boot_type=uefi + boot_type='uefi' ;; s) - secure_boot=yes + secure_boot='on' ;; *) - echo "Error: Wrong option. Try 'run_archiso -h'." + printf '%s\n' "Error: Wrong option. Try 'run_archiso -h'." exit 1 ;; esac -- 2.11.0