From 613d532bdf391921d8514f6c2d965db4030a1a50 Mon Sep 17 00:00:00 2001 From: Anoop Karollil Date: Thu, 30 May 2013 17:05:18 -0700 Subject: [PATCH] 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 Signed-off-by: Luis R. Rodriguez --- 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 e4b9fb03835d..5a829477c715 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/ -- 2.30.2