summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-11-04 18:38:06 +0100
committerKay Sievers <kay.sievers@vrfy.org>2008-11-04 18:38:06 +0100
commita0e17034eecf3933223503377b5e3f4c4eac0e86 (patch)
tree54a8e55834ea2445f30a2693b2d464f24e50230a
parent4052400fa05d09a12ee89003ce1a74109bb814c3 (diff)
firmware.sh: record missing files in /dev/.udev/firmware-missing/
-rwxr-xr-xextras/firmware/firmware.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/firmware/firmware.sh b/extras/firmware/firmware.sh
index 466b653226..eececa85a1 100755
--- a/extras/firmware/firmware.sh
+++ b/extras/firmware/firmware.sh
@@ -22,4 +22,7 @@ done
echo -1 > /sys$DEVPATH/loading
err "Cannot find firmware file '$FIRMWARE'"
+mkdir -p /dev/.udev/firmware-missing
+file=$(echo "$FIRMWARE" | sed 's:/:\\x2f:g')
+ln -s -f "$DEVPATH" /dev/.udev/firmware-missing/$file
exit 1