summaryrefslogtreecommitdiff
path: root/package/kbd/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/kbd/files')
-rw-r--r--package/kbd/files/kbd.init26
-rw-r--r--package/kbd/files/kbd.postinst4
-rw-r--r--package/kbd/files/zaurus.map228
3 files changed, 258 insertions, 0 deletions
diff --git a/package/kbd/files/kbd.init b/package/kbd/files/kbd.init
new file mode 100644
index 000000000..9bbbdaa5f
--- /dev/null
+++ b/package/kbd/files/kbd.init
@@ -0,0 +1,26 @@
+#!/bin/sh
+#PKG dropbear
+#INIT 50
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${kbd:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ loadkeys /etc/$kbd_map
+ ;;
+stop)
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/kbd/files/kbd.postinst b/package/kbd/files/kbd.postinst
new file mode 100644
index 000000000..b2d973ee1
--- /dev/null
+++ b/package/kbd/files/kbd.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf kbd_map kbd_map "zaurus"
+add_rcconf kbd kbd NO
diff --git a/package/kbd/files/zaurus.map b/package/kbd/files/zaurus.map
new file mode 100644
index 000000000..11a0e8b4d
--- /dev/null
+++ b/package/kbd/files/zaurus.map
@@ -0,0 +1,228 @@
+# Default kernel keymap. This uses 7 modifier combinations.
+keymaps 0-2,4-5,8,12
+# Change the above line into
+# keymaps 0-2,4-6,8,12
+# in case you want the entries
+# altgr control keycode 83 = Boot
+# altgr control keycode 111 = Boot
+# below.
+#
+keycode 1 =
+keycode 2 = one exclam
+ control alt keycode 2 = Console_1
+keycode 3 = two quotedbl
+ control alt keycode 3 = Console_2
+keycode 4 = three numbersign
+ control alt keycode 4 = Console_3
+keycode 5 = four dollar
+ control alt keycode 5 = Console_4
+keycode 6 = five percent
+ control alt keycode 6 = Console_5
+keycode 7 = six ampersand
+ control alt keycode 7 = Console_6
+keycode 8 = seven apostrophe
+keycode 9 = eight parenleft
+keycode 10 = nine parenright
+keycode 11 = zero asciitilde
+keycode 12 = minus at
+ altgr keycode 12 = at
+keycode 13 =
+keycode 14 = BackSpace
+ altgr keycode 14 = Delete
+keycode 15 = Tab
+ altgr keycode 15 = Caps_Lock
+keycode 16 = q
+keycode 17 = w
+ altgr keycode 17 = asciicircum
+keycode 18 = e
+ altgr keycode 18 = equal
+keycode 19 = r
+ altgr keycode 19 = plus
+keycode 20 = t
+ altgr keycode 20 = bracketleft
+keycode 21 = y
+ altgr keycode 21 = bracketright
+keycode 22 = u
+ altgr keycode 22 = braceleft
+keycode 23 = i
+ altgr keycode 23 = braceright
+keycode 24 = o
+keycode 25 = p
+keycode 26 =
+keycode 27 =
+keycode 28 = Return
+keycode 29 = Control
+keycode 30 = a
+keycode 31 = s
+keycode 32 = d
+keycode 33 = f
+ altgr keycode 33 = backslash
+keycode 34 = g
+ altgr keycode 34 = semicolon
+keycode 35 = h
+ altgr keycode 35 = colon
+keycode 36 = j
+ altgr keycode 36 = asterisk
+keycode 37 = k
+ altgr keycode 37 = backslash
+keycode 38 = l
+ altgr keycode 38 = bar
+keycode 39 =
+keycode 40 =
+keycode 41 =
+keycode 42 = Shift
+keycode 43 =
+keycode 44 = z
+keycode 45 = x
+keycode 46 = c
+keycode 47 = v
+keycode 48 = b
+ altgr keycode 48 = underscore
+keycode 49 = n
+keycode 50 = m
+keycode 51 = comma slash
+ altgr keycode 51 = less
+keycode 52 = period question
+ altgr keycode 52 = greater
+keycode 53 =
+keycode 54 = Shift
+keycode 55 =
+keycode 56 = Alt
+keycode 57 = space space
+ control keycode 57 = nul
+keycode 59 = F9
+keycode 60 = F10
+keycode 61 = AltGr
+keycode 62 = Escape
+keycode 63 = Return
+keycode 64 = Escape
+keycode 65 = Down
+keycode 66 = Up
+keycode 67 = Control
+keycode 68 = F13
+keycode 79 = F15
+keycode 80 = F16
+keycode 82 = F17
+keycode 87 = Return
+keycode 88 = F11
+keycode 97 = Control
+keycode 99 = F12
+keycode 103 = Up
+ altgr keycode 103 = PageUp
+keycode 105 = Left
+ altgr keycode 105 = Decr_Console
+keycode 106 = Right
+ altgr keycode 106 = Incr_Console
+keycode 108 = Down
+ altgr keycode 108 = PageDown
+
+
+# LCD Softkeys as represented by zaurusd
+keycode 82 = F5
+keycode 79 = F15 # Home
+keycode 80 = F6
+keycode 81 = F16 # Email
+keycode 75 = F7
+keycode 76 = F17 # Addresses
+keycode 77 = F8
+keycode 71 = F18 # Calendar
+keycode 72 = F9
+keycode 73 = F19 # Book
+keycode 78 = F10
+
+string F1 = "\033[[A"
+string F2 = "\033[[B"
+string F3 = "\033[[C"
+string F4 = "\033[[D"
+string F5 = "\033[[E"
+string F6 = "\033[17~"
+string F7 = "\033[18~"
+string F8 = "\033[19~"
+string F9 = "\033[20~"
+string F10 = "\033[21~"
+string F11 = "\033[23~"
+string F12 = "\033[24~"
+string F13 = "\033[25~"
+string F14 = "\033[26~"
+string F15 = "\033[28~"
+string F16 = "\033[29~"
+string F17 = "\033[31~"
+string F18 = "\033[32~"
+string F19 = "\033[33~"
+string F20 = "\033[34~"
+string Find = "\033[1~"
+string Insert = "\033[2~"
+string Remove = "\033[3~"
+string Select = "\033[4~"
+string Prior = "\033[5~"
+string Next = "\033[6~"
+string Macro = "\033[M"
+string Pause = "\033[P"
+compose '`' 'A' to 'À'
+compose '`' 'a' to 'à'
+compose '\'' 'A' to 'Á'
+compose '\'' 'a' to 'á'
+compose '^' 'A' to 'Â'
+compose '^' 'a' to 'â'
+compose '~' 'A' to 'Ã'
+compose '~' 'a' to 'ã'
+compose '"' 'A' to 'Ä'
+compose '"' 'a' to 'ä'
+compose 'O' 'A' to 'Å'
+compose 'o' 'a' to 'å'
+compose '0' 'A' to 'Å'
+compose '0' 'a' to 'å'
+compose 'A' 'A' to 'Å'
+compose 'a' 'a' to 'å'
+compose 'A' 'E' to 'Æ'
+compose 'a' 'e' to 'æ'
+compose ',' 'C' to 'Ç'
+compose ',' 'c' to 'ç'
+compose '`' 'E' to 'È'
+compose '`' 'e' to 'è'
+compose '\'' 'E' to 'É'
+compose '\'' 'e' to 'é'
+compose '^' 'E' to 'Ê'
+compose '^' 'e' to 'ê'
+compose '"' 'E' to 'Ë'
+compose '"' 'e' to 'ë'
+compose '`' 'I' to 'Ì'
+compose '`' 'i' to 'ì'
+compose '\'' 'I' to 'Í'
+compose '\'' 'i' to 'í'
+compose '^' 'I' to 'Î'
+compose '^' 'i' to 'î'
+compose '"' 'I' to 'Ï'
+compose '"' 'i' to 'ï'
+compose '-' 'D' to 'Ð'
+compose '-' 'd' to 'ð'
+compose '~' 'N' to 'Ñ'
+compose '~' 'n' to 'ñ'
+compose '`' 'O' to 'Ò'
+compose '`' 'o' to 'ò'
+compose '\'' 'O' to 'Ó'
+compose '\'' 'o' to 'ó'
+compose '^' 'O' to 'Ô'
+compose '^' 'o' to 'ô'
+compose '~' 'O' to 'Õ'
+compose '~' 'o' to 'õ'
+compose '"' 'O' to 'Ö'
+compose '"' 'o' to 'ö'
+compose '/' 'O' to 'Ø'
+compose '/' 'o' to 'ø'
+compose '`' 'U' to 'Ù'
+compose '`' 'u' to 'ù'
+compose '\'' 'U' to 'Ú'
+compose '\'' 'u' to 'ú'
+compose '^' 'U' to 'Û'
+compose '^' 'u' to 'û'
+compose '"' 'U' to 'Ü'
+compose '"' 'u' to 'ü'
+compose '\'' 'Y' to 'Ý'
+compose '\'' 'y' to 'ý'
+compose 'T' 'H' to 'Þ'
+compose 't' 'h' to 'þ'
+compose 's' 's' to 'ß'
+compose '"' 'y' to 'ÿ'
+compose 's' 'z' to 'ß'
+compose 'i' 'j' to 'ÿ'