From 2ae7465964126c09aa2e318e27d37769126c8fa9 Mon Sep 17 00:00:00 2001 From: Max Rees Date: Sat, 13 Jan 2018 10:02:29 +0000 Subject: user/acpilight: new package --- user/acpilight/acpilight.post-install | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 user/acpilight/acpilight.post-install (limited to 'user/acpilight/acpilight.post-install') 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 -- cgit v1.2.3-70-g09d2