diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-27 03:23:55 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-27 03:23:55 +0100 |
| commit | 13c88e0dff89bfdda5a02c647653cce37b083e16 (patch) | |
| tree | 158bef5cb4d90575fbbcd32778eb50b70a0c7afa /scripts | |
| parent | b939d370f2720f761ac7c6dfe0041ebfd64c1b79 (diff) | |
Fix Mac installs
Based on https://wiki.archlinux.org/title/MacBookPro9,x#Wireless
The Claude.ai suggested setup was not needed at all.
It's sufficient to remove the conflicting kernel modules (b43) and
just reload the module wl!
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get-broadcom-wl.sh | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/scripts/get-broadcom-wl.sh b/scripts/get-broadcom-wl.sh deleted file mode 100755 index ce76e68..0000000 --- a/scripts/get-broadcom-wl.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash -set -euo pipefail - -# Co-Authored-By: Claude.ai -# -# Downloads the broadcom-wl Arch package matching a given kernel version. -# Needed for BCM4360 WiFi on Intel 2012 Macs (and similar) during archiso install. -# -# Usage: ./get-broadcom-wl.sh <kernel-version> -# Example: ./get-broadcom-wl.sh 6.18.7-arch1-1 - -if [[ $# -ne 1 ]]; then - echo "Usage: $0 <kernel-version>" >&2 - echo "Example: $0 6.18.7-arch1-1" >&2 - exit 1 -fi - -if ! command -v curl &>/dev/null; then - echo "Error: curl is required" >&2 - exit 1 -fi - -KERNEL_VER="$1" -# uname -r gives 6.18.7-arch1-1, Arch packages/commits use 6.18.7.arch1-1 -PKG_KERNEL_VER="${KERNEL_VER/-/.}" -# Escape dots for use in regex -PKG_KERNEL_REGEX="${PKG_KERNEL_VER//./\\.}" - -GITLAB_API="https://gitlab.archlinux.org/api/v4/projects/archlinux%2Fpackaging%2Fpackages%2Fbroadcom-wl/repository/commits" -ARCHIVE_BASE="https://archive.archlinux.org/packages/b/broadcom-wl" - -echo "Searching for broadcom-wl matching kernel: $PKG_KERNEL_VER" - -page=1 -revision="" - -while [[ -z "$revision" && $page -le 30 ]]; do - response=$(curl -sf "${GITLAB_API}?per_page=100&page=${page}") || { - echo "Error: GitLab API request failed" >&2 - exit 1 - } - - [[ "$response" == "[]" ]] && break - - revision=$(echo "$response" \ - | grep -o '"title":"6\.30\.223\.271-[0-9]*: linux '"${PKG_KERNEL_REGEX}"'"' \ - | sed 's/.*-\([0-9]*\):.*/\1/' \ - | head -1) - - ((page++)) -done - -if [[ -z "$revision" ]]; then - echo "Error: no broadcom-wl package found for kernel $PKG_KERNEL_VER" >&2 - exit 1 -fi - -PKG="broadcom-wl-6.30.223.271-${revision}-x86_64.pkg.tar.zst" -URL="${ARCHIVE_BASE}/${PKG}" - -echo "Found: revision $revision" -echo "Downloading: $URL" -curl -L --progress-bar -O "$URL" -echo "Done: $PKG" |
