#!/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