summaryrefslogtreecommitdiff
path: root/extras/firmware
diff options
context:
space:
mode:
authorJon Masters <jcm@jonmasters.org>2009-07-01 20:21:03 -0400
committerJon Masters <jcm@jonmasters.org>2009-07-01 20:21:03 -0400
commit25688f4d67d452192c1cc6b201c29dab0f2b8ab8 (patch)
treeae4b99d9004079b2fc861fe14ea55ce55b83d6da /extras/firmware
parentf045aa1cabab0ea0c3c3a6ee45cc9013a36c35b1 (diff)
firmware: search for third party or sysadmin supplied firmware updates
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.
Diffstat (limited to 'extras/firmware')
-rwxr-xr-xextras/firmware/firmware.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/firmware/firmware.sh b/extras/firmware/firmware.sh
index eececa85a1..9d4659a34d 100755
--- a/extras/firmware/firmware.sh
+++ b/extras/firmware/firmware.sh
@@ -1,6 +1,7 @@
#!/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