summaryrefslogtreecommitdiff
path: root/packages/scap
diff options
context:
space:
mode:
authorFlorian Boor <florian.boor@kernelconcepts.de>2005-08-25 12:40:32 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-25 12:40:32 +0000
commit7ef5bceaca3086db5e8b0de95fef06ea23732ff0 (patch)
tree9cdb9f6b79325a76e37611dbacc833c2454b9586 /packages/scap
parent08230069ad4b4ab6686d0467546e5f0125d54e3a (diff)
Update scap script to include a delay of 5 seconds and to toggle
the backlight on systems with "bl".
Diffstat (limited to 'packages/scap')
-rw-r--r--packages/scap/files/scap.sh9
-rw-r--r--packages/scap/scap_0.1.bb2
2 files changed, 9 insertions, 2 deletions
diff --git a/packages/scap/files/scap.sh b/packages/scap/files/scap.sh
index 6fccdd400e..f8e0485333 100644
--- a/packages/scap/files/scap.sh
+++ b/packages/scap/files/scap.sh
@@ -1,5 +1,9 @@
#!/bin/sh
+sleep 5
+if [ -x /usr/bin/bl ]; then
+ bl toggle
+fi
MODEL=`cat /proc/cpuinfo | grep ^Hardware | sed "s/.* //"`
test -e /etc/scap.conf && USER=`cat /etc/scap.conf`
RES=`fbset 2>/dev/null | awk "/geometry/ { print \$2 "x" \$3 }"`
@@ -10,4 +14,7 @@ RES=`fbset 2>/dev/null | awk "/geometry/ { print \$2 "x" \$3 }"`
echo "Host: www.handhelds.org"
echo ""
cat /dev/fb0) | nc www.handhelds.org 80
-
+if [ -x /usr/bin/bl ]; then
+ bl toggle
+fi
+
diff --git a/packages/scap/scap_0.1.bb b/packages/scap/scap_0.1.bb
index 1348e6ed6f..30cf1b3299 100644
--- a/packages/scap/scap_0.1.bb
+++ b/packages/scap/scap_0.1.bb
@@ -1,5 +1,5 @@
LICENSE = "OSL"
-PR = "r1"
+PR = "r2"
DESCRIPTION = "handhelds.org screen capture utility"
SRC_URI = "file://scap.sh file://scap.desktop file://scap.png"