From 75d7bc505909fb0c7566a32a26088db5515cb862 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 13 Jan 2013 20:10:30 +0100 Subject: bug fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- adjbacklight | 3 +-- 1 file changed, 1 insertion(+), 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' -- cgit v1.2.3-70-g09d2