From 556ed49e175646c850add5c6ab3efd166679633c Mon Sep 17 00:00:00 2001 From: Mykyta Holubakha Date: Fri, 13 Jul 2018 20:31:50 +0300 Subject: Install udev rules by default --- Makefile | 2 +- README.md | 4 ++-- 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). -- cgit v1.2.3