summaryrefslogtreecommitdiff
path: root/packages/scap
diff options
context:
space:
mode:
authorRene Wagner <rw@handhelds.org>2005-08-27 00:35:47 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-27 00:35:47 +0000
commitc9310255bcef16e59907891f5ef65a897bd52297 (patch)
tree8202942e8390597aa917e22fc0de92b109611d79 /packages/scap
parent5da3f4af1e4e6b558b6249b9db7ba89306ed9db2 (diff)
parentbfe154780c963a74e76688b840786da3ffe3fbe2 (diff)
merge of bdbeb53fb07854a8484b17504b9ab11113e0fe51
and fda50be34c5e8aeb2a40fcb38520b83eea2db043
Diffstat (limited to 'packages/scap')
-rw-r--r--packages/scap/files/scap.desktop2
-rw-r--r--packages/scap/files/scap.sh9
-rw-r--r--packages/scap/scap_0.1.bb2
3 files changed, 10 insertions, 3 deletions
diff --git a/packages/scap/files/scap.desktop b/packages/scap/files/scap.desktop
index 6209d8f69c..bba17259bb 100644
--- a/packages/scap/files/scap.desktop
+++ b/packages/scap/files/scap.desktop
@@ -1,5 +1,5 @@
[Desktop Entry]
-Name=Online Screenshot
+Name=Upload Screenshot
Comment=Upload a screenshot to http://handhelds.org/scap
Exec=scap
Terminal=0
diff --git a/packages/scap/files/scap.sh b/packages/scap/files/scap.sh
index 6fccdd400e..ba8bc7e584 100644
--- a/packages/scap/files/scap.sh
+++ b/packages/scap/files/scap.sh
@@ -1,5 +1,9 @@
#!/bin/sh
+sleep 2
+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..7bef893e59 100644
--- a/packages/scap/scap_0.1.bb
+++ b/packages/scap/scap_0.1.bb
@@ -1,5 +1,5 @@
LICENSE = "OSL"
-PR = "r1"
+PR = "r4"
DESCRIPTION = "handhelds.org screen capture utility"
SRC_URI = "file://scap.sh file://scap.desktop file://scap.png"