diff options
Diffstat (limited to 'resources/scripts/update')
-rwxr-xr-x | resources/scripts/update/blobs/inject | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/resources/scripts/update/blobs/inject b/resources/scripts/update/blobs/inject index 891cb198..bc8a9a4d 100755 --- a/resources/scripts/update/blobs/inject +++ b/resources/scripts/update/blobs/inject @@ -50,15 +50,18 @@ main() while getopts r:b:m: option do - case "${option}" - in - r)rom=${OPTARG};; - b)board=${OPTARG};; + case "${option}" in + r) + rom=${OPTARG} + ;; + b) + board=${OPTARG} + ;; m) modifygbe=true new_mac=${OPTARG} ;; - esac + esac done check_board @@ -111,17 +114,17 @@ detect_board() path=${1} filename=$(basename ${path}) case ${filename} in - grub_*) + grub_*) board=$(echo "${filename}" | cut -d '_' -f2-3) ;; - seabios_withgrub_*) + seabios_withgrub_*) board=$(echo "${filename}" | cut -d '_' -f3-4) ;; - *.tar.xz) + *.tar.xz) _stripped_prefix=${filename#*_} board="${_stripped_prefix%.tar.xz}" ;; - *) + *) return 1 esac |