summaryrefslogtreecommitdiff
path: root/user/acpilight/acpilight.post-install
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2018-04-17 02:25:59 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2018-04-17 02:25:59 +0000
commit8e41995ddbb56175eb00995ab0f7f750e5bde2da (patch)
tree299a876025e8fd6c701e82ffd1236ecb2ae8a2a0 /user/acpilight/acpilight.post-install
parent8520e5d42ea95a71d7a67c142d7a1abc76c2a98d (diff)
parent2ae7465964126c09aa2e318e27d37769126c8fa9 (diff)
downloadpackages-8e41995ddbb56175eb00995ab0f7f750e5bde2da.tar.gz
packages-8e41995ddbb56175eb00995ab0f7f750e5bde2da.tar.bz2
packages-8e41995ddbb56175eb00995ab0f7f750e5bde2da.tar.xz
packages-8e41995ddbb56175eb00995ab0f7f750e5bde2da.zip
Merge branch 'acpilight' into 'master'
user/acpilight: new package See merge request !24
Diffstat (limited to 'user/acpilight/acpilight.post-install')
-rw-r--r--user/acpilight/acpilight.post-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/acpilight/acpilight.post-install b/user/acpilight/acpilight.post-install
new file mode 100644
index 000000000..0e64cf725
--- /dev/null
+++ b/user/acpilight/acpilight.post-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+chgrp video /sys/class/backlight/*/brightness || true
+chmod g+w /sys/class/backlight/*/brightness || true
+chgrp video /sys/class/leds/*/brightness || true
+chmod g+w /sys/class/leds/*/brightness || true
+
+echo "*"
+echo "* Any user wishing to use xbacklight must be in the 'video' group."
+echo "* Check using 'groups \$USER' and add using 'usermod -aG video \$USER'."
+echo "*"
+exit 0