diff --git a/scripts/which_firmware b/scripts/which_firmware old mode 100644 new mode 100755 index f4a084730..e00f761ef --- a/scripts/which_firmware +++ b/scripts/which_firmware @@ -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'