]> code.ossystems Code Review - openembedded-core.git/commitdiff
matchbox-session: Make the input controls machine dependent hence adding support...
authorRichard Purdie <richard@openedhand.com>
Mon, 10 Oct 2005 08:57:51 +0000 (08:57 +0000)
committerRichard Purdie <richard@openedhand.com>
Mon, 10 Oct 2005 08:57:51 +0000 (08:57 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky@125 311d38ba-8fff-0310-9ca6-ca027cbcb966

openembedded/packages/matchbox-poky/matchbox-poky/etc/matchbox/session

index 6599e7dbb135c868aff99c378f78e177c65c2014..2806094a796d5aad57760b8f9b242aac3c10204a 100755 (executable)
@@ -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 \