chiark / gitweb /
firmware.sh: record missing files in /dev/.udev/firmware-missing/
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 4 Nov 2008 17:38:06 +0000 (18:38 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 4 Nov 2008 17:38:06 +0000 (18:38 +0100)
extras/firmware/firmware.sh

index 466b653..eececa8 100755 (executable)
@@ -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