summaryrefslogtreecommitdiff
path: root/packages/scap
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/scap
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/scap')
-rw-r--r--packages/scap/.mtn2git_empty0
-rw-r--r--packages/scap/files/.mtn2git_empty0
-rw-r--r--packages/scap/files/scap.desktop9
-rw-r--r--packages/scap/files/scap.pngbin0 -> 628 bytes
-rw-r--r--packages/scap/files/scap.sh13
5 files changed, 22 insertions, 0 deletions
diff --git a/packages/scap/.mtn2git_empty b/packages/scap/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/scap/.mtn2git_empty
diff --git a/packages/scap/files/.mtn2git_empty b/packages/scap/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/scap/files/.mtn2git_empty
diff --git a/packages/scap/files/scap.desktop b/packages/scap/files/scap.desktop
index e69de29bb2..6209d8f69c 100644
--- a/packages/scap/files/scap.desktop
+++ b/packages/scap/files/scap.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Online Screenshot
+Comment=Upload a screenshot to http://handhelds.org/scap
+Exec=scap
+Terminal=0
+Type=Application
+Icon=scap.png
+Categories=Action
+StartupNotify=False
diff --git a/packages/scap/files/scap.png b/packages/scap/files/scap.png
index e69de29bb2..ed7f09fd72 100644
--- a/packages/scap/files/scap.png
+++ b/packages/scap/files/scap.png
Binary files differ
diff --git a/packages/scap/files/scap.sh b/packages/scap/files/scap.sh
index e69de29bb2..6fccdd400e 100644
--- a/packages/scap/files/scap.sh
+++ b/packages/scap/files/scap.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+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 }"`
+(echo "POST /scap/capture.cgi?$MODEL+$USER+$RES HTTP/1.1"
+ echo -n Content-length:
+ cat /dev/fb0 | wc -c
+ echo "Content-Type: image/gif"
+ echo "Host: www.handhelds.org"
+ echo ""
+ cat /dev/fb0) | nc www.handhelds.org 80
+