Browse Source

Set initial keyboard map for mesh client

Bob Mottram 8 years ago
parent
commit
4d9d047e3c
No account linked to committer's email
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-image-customise

+ 4
- 0
src/freedombone-image-customise View File

106
 # a new identity at every shutdown/boot
106
 # a new identity at every shutdown/boot
107
 AMNESIC='no'
107
 AMNESIC='no'
108
 
108
 
109
+# defines the initial keyboard layout
110
+KEYBOARD_MAP='gb'
111
+
109
 enable_eatmydata_override() {
112
 enable_eatmydata_override() {
110
     chroot $rootdir apt-get install --no-install-recommends -y eatmydata
113
     chroot $rootdir apt-get install --no-install-recommends -y eatmydata
111
     if [ -x $rootdir/usr/bin/eatmydata ] && \
114
     if [ -x $rootdir/usr/bin/eatmydata ] && \
579
     START_DESKTOP=$rootdir/home/$MY_USERNAME/mesh-desktop.sh
582
     START_DESKTOP=$rootdir/home/$MY_USERNAME/mesh-desktop.sh
580
 	FIRST_BOOT=/home/$MY_USERNAME/.first_boot
583
 	FIRST_BOOT=/home/$MY_USERNAME/.first_boot
581
     echo '#!/bin/bash' > $START_DESKTOP
584
     echo '#!/bin/bash' > $START_DESKTOP
585
+    echo "setxkbmap ${KEYBOARD_MAP}" > $START_DESKTOP
582
     echo 'dconf write /org/mate/caja/desktop/volumes-visible false' >> $START_DESKTOP
586
     echo 'dconf write /org/mate/caja/desktop/volumes-visible false' >> $START_DESKTOP
583
     echo 'dconf write /org/mate/caja/desktop/computer-icon-visible false' >> $START_DESKTOP
587
     echo 'dconf write /org/mate/caja/desktop/computer-icon-visible false' >> $START_DESKTOP
584
     echo 'dconf write /org/mate/caja/desktop/home-icon-visible false' >> $START_DESKTOP
588
     echo 'dconf write /org/mate/caja/desktop/home-icon-visible false' >> $START_DESKTOP