summaryrefslogtreecommitdiff
path: root/packages/scap
diff options
context:
space:
mode:
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
+