diff --git a/iso/vendor/arcconf b/iso/vendor/arcconf new file mode 100755 index 0000000..c95e6f5 Binary files /dev/null and b/iso/vendor/arcconf differ diff --git a/iso/vendor/sas2ircu b/iso/vendor/sas2ircu new file mode 100755 index 0000000..94277f8 Binary files /dev/null and b/iso/vendor/sas2ircu differ diff --git a/iso/vendor/sas3ircu b/iso/vendor/sas3ircu new file mode 100755 index 0000000..fb521cd Binary files /dev/null and b/iso/vendor/sas3ircu differ diff --git a/iso/vendor/ssacli b/iso/vendor/ssacli new file mode 100755 index 0000000..5b71e38 Binary files /dev/null and b/iso/vendor/ssacli differ diff --git a/iso/vendor/storcli64 b/iso/vendor/storcli64 new file mode 100755 index 0000000..a48b9e1 Binary files /dev/null and b/iso/vendor/storcli64 differ diff --git a/scripts/fetch-vendor.sh b/scripts/fetch-vendor.sh deleted file mode 100755 index a2c227c..0000000 --- a/scripts/fetch-vendor.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/sh -# fetch-vendor.sh — download proprietary vendor utilities into iso/vendor. -# -# Usage: -# STORCLI_URL=... STORCLI_SHA256=... \ -# SAS2IRCU_URL=... SAS2IRCU_SHA256=... \ -# SAS3IRCU_URL=... SAS3IRCU_SHA256=... \ -# MSTFLINT_URL=... MSTFLINT_SHA256=... \ -# sh scripts/fetch-vendor.sh - -set -eu - -ROOT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -OUT_DIR="$ROOT_DIR/iso/vendor" -mkdir -p "$OUT_DIR" - -need_cmd() { - command -v "$1" >/dev/null 2>&1 || { echo "ERROR: required command not found: $1" >&2; exit 1; } -} - -need_cmd sha256sum - -download_to() { - url="$1" - out="$2" - if command -v wget >/dev/null 2>&1; then - wget -O "$out" "$url" - return 0 - fi - if command -v curl >/dev/null 2>&1; then - curl -fsSL "$url" -o "$out" - return 0 - fi - echo "ERROR: required command not found: wget or curl" >&2 - exit 1 -} - -fetch_one() { - name="$1" - url="$2" - sha="$3" - - if [ -z "$url" ] || [ -z "$sha" ]; then - echo "[vendor] skip $name (URL/SHA not provided)" - return 0 - fi - - dst="$OUT_DIR/$name" - tmp="$dst.tmp" - - echo "[vendor] downloading $name" - download_to "$url" "$tmp" - - got=$(sha256sum "$tmp" | awk '{print $1}') - want=$(echo "$sha" | tr '[:upper:]' '[:lower:]') - if [ "$got" != "$want" ]; then - rm -f "$tmp" - echo "ERROR: checksum mismatch for $name" >&2 - echo " got: $got" >&2 - echo " want: $want" >&2 - exit 1 - fi - - mv "$tmp" "$dst" - chmod +x "$dst" || true - echo "[vendor] ok: $name" -} - -fetch_one "storcli64" "${STORCLI_URL:-}" "${STORCLI_SHA256:-}" -fetch_one "sas2ircu" "${SAS2IRCU_URL:-}" "${SAS2IRCU_SHA256:-}" -fetch_one "sas3ircu" "${SAS3IRCU_URL:-}" "${SAS3IRCU_SHA256:-}" -fetch_one "mstflint" "${MSTFLINT_URL:-}" "${MSTFLINT_SHA256:-}" - -echo "[vendor] done. output dir: $OUT_DIR"