From fa5bcf6e2804497a09e06f66d1455dabd0525738 Mon Sep 17 00:00:00 2001 From: Matthias Hentges Date: Mon, 27 Mar 2006 17:33:26 +0000 Subject: display-brightness: Fix execution error (busybox related?) --- packages/display-brightness/display-brightness.sh | 9 ++++++--- packages/display-brightness/display-brightness_1.0.0.bb | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'packages/display-brightness') 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 " MAINTAINER = "Patrick Steiner " DEPENDS = "" PRIORITY = "optional" -PR = "r0" +PR = "r1" LICENSE = "GPLv2" SRC_URI = "file://display-brightness.sh" -- cgit v1.2.3