diff options
author | ache <ache@ache.one> | 2019-10-12 04:54:25 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2019-10-12 04:54:25 +0200 |
commit | 29ecd854947c2326374ed90e22b7a3f2fcf466df (patch) | |
tree | ba1fbe79ef880a354d6f264fa6eb16aeefb152bb /light2.sh | |
parent | Improve light2 error managment (diff) |
light2: Read doesn't need root
Diffstat (limited to 'light2.sh')
-rwxr-xr-x | light2.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,7 +19,7 @@ if [ -n "$listBacklight" ] ; then printf "${backlight}: " cat /sys/class/backlight/${backlight}/brightness else - echo "${val}" | tee "/sys/class/backlight/${backlight}/brightness" 2>/dev/null /dev/null + echo "${val}" | sudo tee "/sys/class/backlight/${backlight}/brightness" 2>/dev/null /dev/null if [ $? -ne 0 ]; then printf "%s\n" "Erreur can't write to /sys/class/backlight/${backlight}/brightness" >&2 fi |