[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-backports
Subject:    [PATCH] backports: fix firmware install for old udev on Ubuntu
From:       Anoop Karollil <anoop.karollil () gmail ! com>
Date:       2013-05-31 0:05:18
Message-ID: 1369958718-18711-1-git-send-email-anoop.karollil () gmail ! com
[Download RAW message or body]

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.

Signed-off-by: Anoop Karollil <anoop.karollil@gmail.com>
---
 backport/scripts/backport_firmware_install.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backport/scripts/backport_firmware_install.sh \
b/backport/scripts/backport_firmware_install.sh index e4b9fb0..5a82947 100755
--- a/backport/scripts/backport_firmware_install.sh
+++ b/backport/scripts/backport_firmware_install.sh
@@ -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/
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic