summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-03-27 17:33:26 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-03-27 17:33:26 +0000
commitfa5bcf6e2804497a09e06f66d1455dabd0525738 (patch)
tree9e3e0c00ca4f31c59cd7bd544bf9c2992451eabf /packages
parent643b5b8338554da781462bee60944bfe901e0122 (diff)
display-brightness: Fix execution error (busybox related?)
Diffstat (limited to 'packages')
-rw-r--r--packages/display-brightness/display-brightness.sh9
-rw-r--r--packages/display-brightness/display-brightness_1.0.0.bb2
2 files changed, 7 insertions, 4 deletions
diff --git a/packages/display-brightness/display-brightness.sh b/packages/display-brightness/display-brightness.sh
index 8141866858..4e706e1e75 100644
--- a/packages/display-brightness/display-brightness.sh
+++ b/packages/display-brightness/display-brightness.sh
@@ -7,10 +7,13 @@
STEP=5
-MAX_BRIGHTNESS=`cat /sys/class/backlight/*/max_brightness`
-ACTUAL_BRIGHTNESS=`cat /sys/class/backlight/*/actual_brightness`
-BRIGHTNESS_FILE="/sys/class/backlight/*/brightness"
+DRIVER="`ls /sys/class/backlight/|head -1`"
+MAX_BRIGHTNESS=`cat /sys/class/backlight/$DRIVER/max_brightness`
+ACTUAL_BRIGHTNESS=`cat /sys/class/backlight/$DRIVER/actual_brightness`
+BRIGHTNESS_FILE="/sys/class/backlight/$DRIVER/brightness"
+echo "max / current"
+echo "$MAX_BRIGHTNESS / $ACTUAL_BRIGHTNESS"
if [ ! -n "$1" ]; then
exit 0
fi
diff --git a/packages/display-brightness/display-brightness_1.0.0.bb b/packages/display-brightness/display-brightness_1.0.0.bb
index e275b3f8bc..1919f98231 100644
--- a/packages/display-brightness/display-brightness_1.0.0.bb
+++ b/packages/display-brightness/display-brightness_1.0.0.bb
@@ -3,7 +3,7 @@ AUTHOR = "Patrick Steiner <patrick.steiner@a1.net>"
MAINTAINER = "Patrick Steiner <patrick.steiner@a1.net>"
DEPENDS = ""
PRIORITY = "optional"
-PR = "r0"
+PR = "r1"
LICENSE = "GPLv2"
SRC_URI = "file://display-brightness.sh"