20 lines
778 B
Bash
20 lines
778 B
Bash
cat > install-it.sh <<EOF
|
|
#!/usr/bin/env bash
|
|
|
|
BUILDDIR=/var/tmp/nouveau-firmware
|
|
cd ${BUILDDIR}
|
|
wget -c https://al1.seblu.net/seblu/x86_64/nouveau-fw-325.15-1-any.pkg.tar.xz
|
|
|
|
|
|
# extract the contents to the main dir ("/"):
|
|
|
|
sudo tar --wildcards -C / -xf ./nouveau-fw-325.15-1-any.pkg.tar.xz usr/lib/firmware/nouveau/*
|
|
|
|
# This command will:
|
|
# - extract the contents of the archive (-xv)
|
|
# - extract only the firmware files ("--wildcards" and "usr/lib/firmware/nouveau/*"), bypassing Arch's package info (it's an Arch-based package)
|
|
# - extract them to the main directory while preserving the directory structure ("-C /"; putting them in the /usr/lib/firmware/nouveau directory, where they should be).
|
|
EOF
|
|
|
|
checkinstall -y --fstrans --exclude /root/.wget-hsts sh ./install-it.sh
|