bootrc: allow kbmap to be set via plan9.ini (thanks Aaron Bieber)
This commit is contained in:
parent
c63cd980a4
commit
fa1d6ffd83
3 changed files with 24 additions and 1 deletions
|
@ -571,10 +571,22 @@ are automatically detected and need no configuration lines.
|
|||
The line
|
||||
.B serial=type=com
|
||||
can be used to specify settings for a PCMCIA modem.
|
||||
.SS \fLkbmap=\fIvalue\fP
|
||||
This specifies the keyboard map to use.
|
||||
.I Value
|
||||
can be a map file found in
|
||||
.B /sys/lib/kbmap
|
||||
on the ramdisk.
|
||||
.PP
|
||||
For example:
|
||||
.TP
|
||||
.B kbmap=colemak
|
||||
.SS \fLmouseport=\fIvalue\fP
|
||||
This specifies where the mouse is attached.
|
||||
.I Value
|
||||
can be
|
||||
can be a map file found in
|
||||
.B /sys/lib/kbmap
|
||||
on the ramdisk.
|
||||
.TP
|
||||
.B ps2
|
||||
the PS2 mouse/keyboard port. The BIOS setup procedure
|
||||
|
|
|
@ -58,6 +58,10 @@ rc
|
|||
nusbrc 555 sys sys ../boot/nusbrc
|
||||
bootrc 555 sys sys ../boot/bootrc
|
||||
tmp
|
||||
sys
|
||||
lib
|
||||
kbmap
|
||||
+
|
||||
lib
|
||||
firmware
|
||||
+
|
||||
|
|
|
@ -170,6 +170,13 @@ if(test -x /bin/aux/kbdfs){
|
|||
if(! ~ $#a 0)
|
||||
a=/dev/eia^$a
|
||||
aux/kbdfs -q -s cons $a
|
||||
|
||||
if(! ~$#kbmap 0){
|
||||
if(test -f /sys/lib/kbmap/$kbmap){
|
||||
echo 'setting kbmap to' $kbmap
|
||||
cat /sys/lib/kbmap/$kbmap >/dev/kbmap
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# usb devices
|
||||
|
|
Loading…
Reference in a new issue