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>
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/