summarylogtreecommitdiffstats
path: root/namespace-udev-rule.diff
blob: f5f3acf3ee193063c079e9e36eab8249f6b8cf38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
diff --git a/90-backlight.rules b/90-light-backlight.rules
similarity index 100%
rename from 90-backlight.rules
rename to 90-light-backlight.rules
diff --git a/Makefile.am b/Makefile.am
index 6979328..b0f5f18 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,8 +4,8 @@ doc_DATA       = README.md COPYING ChangeLog.md
 EXTRA_DIST     = README.md COPYING ChangeLog.md
 
 if UDEV
-udev_DATA      = 90-backlight.rules
-EXTRA_DIST    += $(top_srcdir)/90-backlight.rules
+udev_DATA      = 90-light-backlight.rules
+EXTRA_DIST    += $(top_srcdir)/90-light-backlight.rules
 endif
 
 # lintian --profile debian -i -I --show-overrides ../$PKG.changes
diff --git a/README.md b/README.md
index caf3c77..bacb682 100644
--- a/README.md
+++ b/README.md
@@ -167,7 +167,7 @@ Optionally, instead of the classic SUID root mode of operation, udev rules can b
     ./configure --with-udev && make
     sudo make install
 
-This installs the `90-backlight.rules` into `/usr/lib/udev/rules.d/`.
+This installs the `90-light-backlight.rules` into `/usr/lib/udev/rules.d/`.
 If your udev rules are located elsewhere, use `--with-udev=PATH`.
 
 **Note:** make sure that your user is part of the `video` group, otherwise you will not get access to the devices.
diff --git a/debian/light.postinst b/debian/light.postinst
index 18cc3e9..f3dbf0c 100644
--- a/debian/light.postinst
+++ b/debian/light.postinst
@@ -9,4 +9,4 @@ udevadm trigger --subsystem-match=backlight --subsystem-match=leds --action=chan
 
 # Reset udev rule action back to 'add', it was set to 'change' during
 # dh_auto_configure to make sure they are effective right away.
-sed -i 's/^ACTION=="change"/ACTION=="add"/g' /usr/lib/udev/rules.d/90-backlight.rules
+sed -i 's/^ACTION=="change"/ACTION=="add"/g' /usr/lib/udev/rules.d/90-light-backlight.rules
diff --git a/debian/rules b/debian/rules
index 80e58e4..3f38174 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@ override_dh_auto_configure:
 	dh_auto_configure -- --with-udev
 	# Change action type of udev rules to make it effective after
 	# installation, they are reset back with the poinst script.
-	sed -i 's/^ACTION=="add"/ACTION=="change"/g' 90-backlight.rules
+	sed -i 's/^ACTION=="add"/ACTION=="change"/g' 90-light-backlight.rules
 
 override_dh_installchangelogs:
 	dh_installchangelogs ChangeLog.md