summaryrefslogtreecommitdiff
path: root/openembedded/packages
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-10-10 08:57:51 +0000
committerRichard Purdie <richard@openedhand.com>2005-10-10 08:57:51 +0000
commit4c10a4fd1ef55edb4fbcda3d9f21a730fa3985c7 (patch)
tree5ea3067652e8db3a414b5a27ef80fa778cb0facb /openembedded/packages
parent7469e31faccee9fe1021507281edd7da8d5221ec (diff)
downloadopenembedded-core-4c10a4fd1ef55edb4fbcda3d9f21a730fa3985c7.tar.gz
openembedded-core-4c10a4fd1ef55edb4fbcda3d9f21a730fa3985c7.tar.bz2
openembedded-core-4c10a4fd1ef55edb4fbcda3d9f21a730fa3985c7.tar.xz
openembedded-core-4c10a4fd1ef55edb4fbcda3d9f21a730fa3985c7.zip
matchbox-session: Make the input controls machine dependent hence adding support for the nokia770.
git-svn-id: https://svn.o-hand.com/repos/poky@125 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages')
-rwxr-xr-xopenembedded/packages/matchbox-poky/matchbox-poky/etc/matchbox/session15
1 files changed, 13 insertions, 2 deletions
diff --git a/openembedded/packages/matchbox-poky/matchbox-poky/etc/matchbox/session b/openembedded/packages/matchbox-poky/matchbox-poky/etc/matchbox/session
index 6599e7dbb..2806094a7 100755
--- a/openembedded/packages/matchbox-poky/matchbox-poky/etc/matchbox/session
+++ b/openembedded/packages/matchbox-poky/matchbox-poky/etc/matchbox/session
@@ -1,7 +1,18 @@
#!/bin/sh
-## start up check hinge, XXX really needs to go in its own session
-chkhinge26 /dev/input/event0 hinge-handler &
+module_id() {
+ awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
+}
+
+## Start up machine specific input devices. Really needs to go in its own session
+case `module_id` in
+ "SHARP Shepherd" | "SHARP Husky" | "SHARP Corgi" | "SHARP Spitz" | "SHARP Akita" | "SHARP Borzoi")
+ chkhinge26 /dev/input/event0 hinge-handler &
+ ;;
+ "Generic OMAP1510/1610/1710")
+ /usr/bin/mbinputmgr &
+ ;;
+esac
## All this should be done by themeing/xsettings.. ##
matchbox-desktop --icon-size 48 \