summaryrefslogtreecommitdiff
path: root/backport
diff options
context:
space:
mode:
authorAnoop Karollil <anoop.karollil@gmail.com>2013-05-30 17:05:18 -0700
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-06-05 20:37:52 -0700
commit613d532bdf391921d8514f6c2d965db4030a1a50 (patch)
tree7bc13af98bde7b308b469b01354d1f7dfdf591fa /backport
parentf001c70192f5c3434ce9649596961041325a0074 (diff)
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. Signed-off-by: Anoop Karollil <anoop.karollil@gmail.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'backport')
-rwxr-xr-xbackport/scripts/backport_firmware_install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/backport/scripts/backport_firmware_install.sh b/backport/scripts/backport_firmware_install.sh
index e4b9fb03..5a829477 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/