]> git.zerfleddert.de Git - m1-debian/commitdiff
add script to extract firmware without dirty tricks or installing xcode
authorThomas Glanzmann <thomas@glanzmann.de>
Thu, 27 Jan 2022 22:02:17 +0000 (23:02 +0100)
committerThomas Glanzmann <thomas@glanzmann.de>
Thu, 27 Jan 2022 22:02:17 +0000 (23:02 +0100)
fwx.sh [new file with mode: 0644]

diff --git a/fwx.sh b/fwx.sh
new file mode 100644 (file)
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
Impressum, Datenschutz