diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-01-13 20:10:30 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-01-13 20:10:30 +0100 |
commit | 75d7bc505909fb0c7566a32a26088db5515cb862 (patch) | |
tree | 1f3b89490779b6db839e6406f4147c1c2b53a45a | |
parent | derp (diff) | |
download | adjbacklight-75d7bc505909fb0c7566a32a26088db5515cb862.tar.gz adjbacklight-75d7bc505909fb0c7566a32a26088db5515cb862.tar.bz2 adjbacklight-75d7bc505909fb0c7566a32a26088db5515cb862.tar.xz |
bug fix
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rwxr-xr-x | adjbacklight | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/adjbacklight b/adjbacklight index fa35b09..6291986 100755 --- a/adjbacklight +++ b/adjbacklight @@ -35,8 +35,7 @@ on the terminal, the following commands should reset it: stty -icanon -echo if [[ $? = 0 ]]; then echo -en '\033[?25l' - ls -1 --color=no "/sys/class/backlight/" | - while read dir; do + for dir in $(ls -1 --color=no "/sys/class/backlight/" | grep -v '^acpi_video'); do sudo java -cp ${BASH_SOURCE%/*} Adjbacklight `stty size` "$dir" done echo -en '\033[?25h' |