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
This commit is contained in:
Richard Purdie 2005-10-10 08:57:51 +00:00
parent 7469e31fac
commit 4c10a4fd1e
1 changed files with 13 additions and 2 deletions

View File

@ -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 \