summaryrefslogtreecommitdiff
path: root/packages/scap/files
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/files
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/files')
-rw-r--r--packages/scap/files/scap.sh9
1 files changed, 8 insertions, 1 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
+