chiark / gitweb /
firmware: search for third party or sysadmin supplied firmware updates
authorJon Masters <jcm@jonmasters.org>
Thu, 2 Jul 2009 00:21:03 +0000 (20:21 -0400)
committerJon Masters <jcm@jonmasters.org>
Thu, 2 Jul 2009 00:21:03 +0000 (20:21 -0400)
We currently search /lib/firmware and /lib/firmware/`uname -r` for firmware
files for device drivers loaded by the currently running kernel. These are
often packaged by distributions as a subpackage of the kernel or as a
separate package containing firmware. But these files cannot easily be
updated by third parties or sysadmins independently of that package.

This patch causes udev to also look for firmware files in an "updates"
directory, which is almost identical in purpose to the module-init-tools
"updates" directories insomuch as local changes can go in here and will
take preference over firmware supplied by any distribution.

extras/firmware/firmware.sh

index eececa85a146210f5116aa9660be6cd50f52fe7e..9d4659a34d789b621c89d7b7b6e74969df76652e 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh -e
 
 #!/bin/sh -e
 
-FIRMWARE_DIRS="/lib/firmware/$(uname -r) /lib/firmware"
+FIRMWARE_DIRS="/lib/firmware/updates/$(uname -r) /lib/firmware/updates \
+               /lib/firmware/$(uname -r) /lib/firmware"
 
 err() {
        echo "$@" >&2
 
 err() {
        echo "$@" >&2