Created
September 25, 2024 13:55
-
-
Save sulincix/c2195a15a2b4cd05dac1dea1647f8a13 to your computer and use it in GitHub Desktop.
Debian update firmware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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