]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/boot/bootrc
kernel: simplify /boot/boot: 28K down to less than 4K.
[plan9front.git] / sys / src / 9 / boot / bootrc
index e7356dd5b28ed026795ba196c331fca46de06340..c0823e6f4dcfcb5ce9ccdc3231ccb4802329aea7 100755 (executable)
@@ -8,6 +8,7 @@ mntgen -s mntexport /mnt/exportfs && chmod 666 /srv/mntexport
 bind /root /mnt/broot
 unmount /root
 
+bind -q '#σ' /shr
 bind -q '#d' /fd
 bind -q '#p' /proc
 for(i in ¶ P S f æ t b m)
@@ -17,7 +18,7 @@ for(i in ¶ P S f æ t b m)
 for(i in I l^(0 1 2 3))
        bind -qa '#'$i /net
 
-# usualy better than 1970
+# usually better than 1970
 cat '#r/rtc' >/dev/time >[2]/dev/null
 
 # reparse variables
@@ -170,6 +171,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