Skip to contentSkip to conversation

backports: fix firmware install for old udev on Ubuntu

PATCH In review Anoop Karollil 2 participants 2 messages May 31, 2013 – Jun 6, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backports: fix firmware install for old udev on Ubuntu

Rules for older versions of udev (e.g. version 113-0ubuntu16 on Ubuntu 7.10) are looked for in /etc/udev/rules.d. For later versions, they are looked for in either the default /lib/udev/rules.d location or the custom /etc/udev/rules.d location. For backwards compatibility with older udev, the rules should be installed in /etc/udev/rules.d.

---
 backport/scripts/backport_firmware_install.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
backport/scripts/backport_firmware_install.sh +2 -2
index e4b9fb0..5a82947 100755
@@ -8,9 +8,9 @@ fi
 
 case $LSB_RED_ID in
 "Ubuntu")
-	mkdir -p /lib/udev/ /lib/udev/rules.d/
+	mkdir -p /lib/udev/ /etc/udev/rules.d/
 	cp udev/ubuntu/compat_firmware.sh /lib/udev/
-	cp udev/50-compat_firmware.rules /lib/udev/rules.d/
+	cp udev/50-compat_firmware.rules /etc/udev/rules.d/
         ;;
 *)
 	mkdir -p /lib/udev/ /lib/udev/rules.d/
Signature · 1 line
1.8.1.2
#1 lore raw
Quoted 7 lines · Anoop Karollil

Rules for older versions of udev (e.g. version 113-0ubuntu16 on Ubuntu 7.10) are looked for in /etc/udev/rules.d. For later versions, they are looked for in either the default /lib/udev/rules.d location or the custom /etc/udev/rules.d location. For backwards compatibility with older udev, the rules should be installed in /etc/udev/rules.d.

Applied and pushed, thanks!

Luis