summaryrefslogblamecommitdiff
path: root/user/acpilight/acpilight.post-install
blob: 0e64cf7251a1ff4bf4b7903ca5f1d8b50c3f5a5f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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