diff options
Diffstat (limited to 'packages/gpe-session-scripts')
-rw-r--r-- | packages/gpe-session-scripts/files/collie.xmodmap | 0 | ||||
-rw-r--r-- | packages/gpe-session-scripts/files/keymap.sh | 16 | ||||
-rw-r--r-- | packages/gpe-session-scripts/gpe-session-scripts_0.62.bb | 7 |
3 files changed, 20 insertions, 3 deletions
diff --git a/packages/gpe-session-scripts/files/collie.xmodmap b/packages/gpe-session-scripts/files/collie.xmodmap new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/gpe-session-scripts/files/collie.xmodmap diff --git a/packages/gpe-session-scripts/files/keymap.sh b/packages/gpe-session-scripts/files/keymap.sh index e69de29bb2..3f2910b439 100644 --- a/packages/gpe-session-scripts/files/keymap.sh +++ b/packages/gpe-session-scripts/files/keymap.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +MACHINE=`awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo` + +case $MACHINE in + "SHARP Shepherd" | "SHARP Husky" | "SHARP Corgi") + xmodmap - < /etc/X11/shepherd.xmodmap + ;; + "Sharp-Collie" + xmodmap - < /etc/X11/collie.xmodmap + ;; + "Simpad") + xmodmap - < /etc/X11/simpad.xmodmap + ;; +esac + diff --git a/packages/gpe-session-scripts/gpe-session-scripts_0.62.bb b/packages/gpe-session-scripts/gpe-session-scripts_0.62.bb index 4420012098..9996e57f28 100644 --- a/packages/gpe-session-scripts/gpe-session-scripts_0.62.bb +++ b/packages/gpe-session-scripts/gpe-session-scripts_0.62.bb @@ -1,5 +1,5 @@ LICENSE = "GPL" -PR = "r5" +PR = "r6" inherit gpe @@ -16,12 +16,13 @@ SRC_URI += "file://zaurus.sh \ file://change-default-applets.patch;patch=1 \ file://xdefaults.patch;patch=1 \ file://matchbox-session \ - file://shepherd.xmodmap file://simpad.xmodmap" + file://shepherd.xmodmap file://simpad.xmodmap \ + file://collie.xmodmap" do_install_append() { install ${WORKDIR}/zaurus.sh ${D}/etc/X11/Xinit.d/11zaurus install ${WORKDIR}/keymap.sh ${D}/etc/X11/Xinit.d/12keymap - for m in simpad shepherd; do + for m in simpad shepherd collie; do install -m 0644 ${WORKDIR}/$m.xmodmap ${D}/etc/X11/ done install -d ${D}/etc/gpe/xsettings-default.d |