scripts/which_firmware: update formatting better

This commit is contained in:
Rick Farina (Zero_Chaos) 2026-05-03 19:40:21 -04:00
parent ce1d23b4e9
commit 89b387b9d1
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

5
scripts/which_firmware Normal file → Executable file
View file

@ -1,2 +1,5 @@
#!/bin/sh
sudo dmesg | awk '/Loading firmware:/{print "/lib/firmware/"$7}' | paste -sd ','
printf 'This script outputs firmware information in the format expected by /etc/genkernel.conf\n'
printf 'FIRMWARE_FILES="'
sudo dmesg | awk '/Loading firmware:/{print $7}' | sort -u | paste -sd ',' | tr -d '\n'
printf '"\n'