From 06c92d4a4aa58e554b52283a7154b6e69c5b82e5 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 27 May 2023 12:00:04 +0100 Subject: blobutil: merge with main script make blobutil a symlink. Example of command changes: ./blobutil download x220_8mb is now: ./update blobs download x220_8mb The old command still works, for compatibility. Signed-off-by: Leah Rowe --- blobutil | 50 +------------------------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) mode change 100755 => 120000 blobutil (limited to 'blobutil') diff --git a/blobutil b/blobutil deleted file mode 100755 index 2a14bb0b..00000000 --- a/blobutil +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash -# SPDX-FileCopyrightText: 2022 Caleb La Grange -# SPDX-FileCopyrightText: 2023 Leah Rowe -# SPDX-License-Identifier: GPL-3.0-only - -script_dir="resources/scripts/blobs" -modes=$(ls -1 ${script_dir}) - -main() -{ - if [ $# -lt 1 ]; then - printf "%s: Error: you must specify a mode\n" $0 - usage - exit 1 - fi - - ./.gitcheck - - mode=${1} - shift - args=$@ - - if [ ! -f "${script_dir}/${mode}" ]; then - printf "Error: No mode ${mode}\n" - usage - exit 1 - fi - - ./${script_dir}/${mode} ${args} || exit 1 - - ./.gitcheck clean -} - -usage(){ - cat <<- EOF - Usage: ./blobutil [mode] - Example: ./blobutil download x230_12mb - - Possible options for mode are - ${modes} - - Mode descriptions: - download: Try to automatically generate blobs for specified board - inject: Inject blobs for specified board into specified rom - extract: Extract blobs from specified rom for specified board - EOF -} - -main $@ diff --git a/blobutil b/blobutil new file mode 120000 index 00000000..012b4ec0 --- /dev/null +++ b/blobutil @@ -0,0 +1 @@ +lbmk \ No newline at end of file -- cgit v1.2.1