summaryrefslogtreecommitdiff
path: root/user/acpilight/acpilight.post-install
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2018-01-13 10:02:29 +0000
committerMax Rees <maxcrees@me.com>2018-03-24 20:58:03 +0000
commit2ae7465964126c09aa2e318e27d37769126c8fa9 (patch)
treebf92b26541a8e804f33865c7615eb715ceae2026 /user/acpilight/acpilight.post-install
parent3441bac816246d1f0a38fe24170389b6f4a341ce (diff)
downloadpackages-2ae7465964126c09aa2e318e27d37769126c8fa9.tar.gz
packages-2ae7465964126c09aa2e318e27d37769126c8fa9.tar.bz2
packages-2ae7465964126c09aa2e318e27d37769126c8fa9.tar.xz
packages-2ae7465964126c09aa2e318e27d37769126c8fa9.zip
user/acpilight: new package
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