Skip to content

Instantly share code, notes, and snippets.

@sulincix
Created September 25, 2024 13:55
Show Gist options
  • Save sulincix/c2195a15a2b4cd05dac1dea1647f8a13 to your computer and use it in GitHub Desktop.
Save sulincix/c2195a15a2b4cd05dac1dea1647f8a13 to your computer and use it in GitHub Desktop.
Debian update firmware
#!/bin/bash
if [[ $UID -ne 0 ]] ; then
echo "You must be root!"
exit 1
fi
apt update
apt install git make rdfind -yq
if [[ ! -d firmware ]] ; then
git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git firmware --depth=1
fi
cd firmware
rm -rf /lib/firmware/
make install
update-initramfs -u -k all
cd ..
rm -rf firmware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment