]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/scap/files/scap.sh
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / scap / files / scap.sh
1 #!/bin/sh
2
3 sleep 2
4 if [ -x /usr/bin/bl ]; then
5         bl toggle
6 fi
7 MODEL=`cat /proc/cpuinfo | grep ^Hardware | sed "s/.* //"`
8 test -e /etc/scap.conf && USER=`cat /etc/scap.conf`
9 RES=`fbset 2>/dev/null | awk "/geometry/ { print \$2 "x" \$3 }"`
10 (echo "POST /scap/capture.cgi?$MODEL+$USER+$RES HTTP/1.1"
11  echo -n Content-length:
12  cat /dev/fb0 | wc -c
13  echo "Content-Type: image/gif"
14  echo "Host: www.handhelds.org"
15  echo ""
16  cat /dev/fb0) | nc www.handhelds.org 80
17 if [ -x /usr/bin/bl ]; then
18         bl toggle
19 fi
20