diff options
author | Richard Purdie <richard@openedhand.com> | 2006-08-27 22:44:10 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-08-27 22:44:10 +0000 |
commit | 92026fcdb0d01359d72e81c8adda03271c417992 (patch) | |
tree | 3a0fc4e5b41c6634e1b47e56efa3a66737e33b3f | |
parent | 418c6e58f7c577302299831b90df620cd9485a3d (diff) | |
download | poky-92026fcdb0d01359d72e81c8adda03271c417992.tar.gz |
chkhinge26: drop (replaced by zaurusd)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@664 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rwxr-xr-x | meta/packages/chkhinge26/chkhinge26_svn.bb | 20 | ||||
-rwxr-xr-x | meta/packages/chkhinge26/files/hinge-handler | 47 |
2 files changed, 0 insertions, 67 deletions
diff --git a/meta/packages/chkhinge26/chkhinge26_svn.bb b/meta/packages/chkhinge26/chkhinge26_svn.bb deleted file mode 100755 index 5313401b50..0000000000 --- a/meta/packages/chkhinge26/chkhinge26_svn.bb +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | LICENSE = "LGPL" | ||
2 | SECTION = "x11" | ||
3 | MAINTAINER = "Matthew Allum <mallum@openedhand.com>" | ||
4 | DESCRIPTION = "Chkhinge26 fires off cmds on cXXXX Zs." | ||
5 | PR = "r2" | ||
6 | |||
7 | SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=chkhinge26;proto=http \ | ||
8 | file://hinge-handler" | ||
9 | |||
10 | S = "${WORKDIR}/${PN}" | ||
11 | |||
12 | inherit autotools pkgconfig | ||
13 | |||
14 | do_install_append () { | ||
15 | install -m 0755 ${WORKDIR}/hinge-handler ${D}/${bindir}/ | ||
16 | } | ||
17 | |||
18 | FILES_${PN} += "${bindir}/hinge-handler" | ||
19 | |||
20 | |||
diff --git a/meta/packages/chkhinge26/files/hinge-handler b/meta/packages/chkhinge26/files/hinge-handler deleted file mode 100755 index 5d5f62e305..0000000000 --- a/meta/packages/chkhinge26/files/hinge-handler +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # Quick handler for chkhinge26 and X. | ||
4 | # | ||
5 | |||
6 | killproc() { # kill the named process(es) | ||
7 | pid=`/bin/ps -e x | | ||
8 | /bin/grep $1 | | ||
9 | /bin/grep -v grep | | ||
10 | /bin/sed -e 's/^ *//' -e 's/ .*//'` | ||
11 | [ "$pid" != "" ] && kill $pid | ||
12 | } | ||
13 | |||
14 | export DISPLAY=:0 | ||
15 | |||
16 | if [ -z "$1" ]; then | ||
17 | echo "Usage: hinge-handler <state> ( 3 = closed, 0 = landscape, 2 = portrait )" | ||
18 | exit 1 | ||
19 | fi | ||
20 | |||
21 | STATE=$1 | ||
22 | |||
23 | if [ $STATE = "3" ]; then | ||
24 | echo "sleeping" | ||
25 | apm -s | ||
26 | exit 0 | ||
27 | fi | ||
28 | |||
29 | if [ $STATE = "0" ]; then | ||
30 | echo "lanscape" | ||
31 | killproc /usr/bin/mbinputmgr | ||
32 | # urg mbinputmgr should kill below | ||
33 | killproc /usr/bin/matchbox-keyboard | ||
34 | killproc /usr/bin/matchbox-stroke | ||
35 | xrandr -o normal | ||
36 | exit 0 | ||
37 | fi | ||
38 | |||
39 | if [ $STATE = "2" ]; then | ||
40 | echo "portrait" | ||
41 | xrandr -o left | ||
42 | # just to be extra safe | ||
43 | sleep 1 | ||
44 | /usr/bin/mbinputmgr & | ||
45 | exit 0 | ||
46 | fi | ||
47 | |||