aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Mykyta Holubakha <hilobakho@gmail.com>2018-07-13 20:31:50 +0300
committerGravatar Mykyta Holubakha <hilobakho@gmail.com>2018-07-13 20:31:50 +0300
commit556ed49e175646c850add5c6ab3efd166679633c (patch)
tree7ab0906252a47d8955760bbb4fed864b34d802c6
parente7115df8922e47432ddf97f992330860c44ab6b1 (diff)
Install udev rules by default
-rw-r--r--Makefile2
-rw-r--r--README.md4
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index cc9e53c..996f796 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ PREFIX ?= /usr
BINDIR = ${DESTDIR}${PREFIX}/bin
MANDIR = ${DESTDIR}${PREFIX}/share/man
-INSTALL_UDEV_RULES = 0
+INSTALL_UDEV_RULES = 1
INSTALL_UDEV_1 = install_udev_rules
UDEVDIR ?= /lib/udev/rules.d
diff --git a/README.md b/README.md
index 9f030b3..92b65b0 100644
--- a/README.md
+++ b/README.md
@@ -19,9 +19,9 @@ One can build and install the program using `make install`. Consult the Makefile
Modifying brightness requires write permissions for device files. `brightnessctl` accomplishes this (without using `sudo`/`su`/etc.) by either of the following means:
-1) installing `brightnessctl` as a suid binary (done by default)
+1) installing relevant udev rules to add permissions to backlight class devices for users in `video` and leds for users in `input`. (done by default)
-2) installing relevant udev rules to add permissions to backlight class devices for users in `video` and leds for users in `input`.
+2) installing `brightnessctl` as a suid binary.
The behavior is controlled by the `INSTALL_UDEV_RULES` flag (setting it to `1` installs the udev rules, `0` is the default value).