summarylogtreecommitdiffstats
path: root/fix-udev-directory.patch
blob: 944b4bfc7f5ec186eb6807a5ca06c78a9f31ec75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -110,8 +110,9 @@ option(INSTALL_UDEV_RULES "Install udev rules for RTL-SDR" OFF)
 if (INSTALL_UDEV_RULES)
     install (
         FILES rtl-sdr.rules
-        DESTINATION "/etc/udev/rules.d"
+        DESTINATION "/usr/lib/udev/rules.d"
         COMPONENT "udev"
+        RENAME 10-rtl-sdr.rules
         )
 else (INSTALL_UDEV_RULES)
     message (STATUS "Udev rules not being installed, install them with -DINSTALL_UDEV_RULES=ON")