aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-01-13 20:10:30 +0100
committerMattias Andrée <maandree@operamail.com>2013-01-13 20:10:30 +0100
commit75d7bc505909fb0c7566a32a26088db5515cb862 (patch)
tree1f3b89490779b6db839e6406f4147c1c2b53a45a
parentderp (diff)
downloadadjbacklight-75d7bc505909fb0c7566a32a26088db5515cb862.tar.gz
adjbacklight-75d7bc505909fb0c7566a32a26088db5515cb862.tar.bz2
adjbacklight-75d7bc505909fb0c7566a32a26088db5515cb862.tar.xz
bug fix
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-xadjbacklight3
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'