From: Thomas Glanzmann Date: Thu, 27 Jan 2022 22:02:17 +0000 (+0100) Subject: add script to extract firmware without dirty tricks or installing xcode X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/commitdiff_plain/81fc7d464e2685197795e42d375fd7269ff40087?ds=inline;hp=-c add script to extract firmware without dirty tricks or installing xcode --- 81fc7d464e2685197795e42d375fd7269ff40087 diff --git a/fwx.sh b/fwx.sh new file mode 100644 index 0000000..ebc9861 --- /dev/null +++ b/fwx.sh @@ -0,0 +1,14 @@ +mkdir -p /tmp/fwx +cd /tmp/fwx +curl -sL https://tg.st/u/installer.tar.gz | tar xzf - + +export LC_ALL=C +export LANG=C + +export DYLD_LIBRARY_PATH=$PWD/Frameworks/Python.framework/Versions/Current/lib +export DYLD_FRAMEWORK_PATH=$PWD/Frameworks +python=Frameworks/Python.framework/Versions/3.9/bin/python3.9 +export SSL_CERT_FILE=$PWD/Frameworks/Python.framework/Versions/Current/etc/openssl/cert.pem +export PATH="$PWD/bin:$PATH" + +python3 -m firmware.wifi /usr/share/firmware/wifi /tmp/linux-firmware.tar