Update scap script to include a delay of 5 seconds and to toggle
authorFlorian Boor <florian.boor@kernelconcepts.de>
Thu, 25 Aug 2005 12:40:32 +0000 (12:40 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Thu, 25 Aug 2005 12:40:32 +0000 (12:40 +0000)
the backlight on systems with "bl".

packages/scap/files/scap.sh
packages/scap/scap_0.1.bb

index 6fccdd4..f8e0485 100644 (file)
@@ -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
+        
index 1348e6e..30cf1b3 100644 (file)
@@ -1,5 +1,5 @@
 LICENSE = "OSL"
-PR = "r1"
+PR = "r2"
 
 DESCRIPTION = "handhelds.org screen capture utility"
 SRC_URI = "file://scap.sh file://scap.desktop file://scap.png"