diff options
author | Jan Wagner <mail@jwagner.eu> | 2016-03-15 15:03:31 +0100 |
---|---|---|
committer | Jan Wagner <mail@jwagner.eu> | 2016-03-15 15:03:31 +0100 |
commit | 24bd7e97cf9d07454c9cde74e4d80a1b3de9dfac (patch) | |
tree | ecafd5cf7a2ff7dc25a343098ccdf66a659334f5 /bootstrap.d/12-locale.sh | |
parent | d4ab3cfce58c908c8bdf85c96ea300c47db3ac85 (diff) | |
download | rpi2-gen-image-24bd7e97cf9d07454c9cde74e4d80a1b3de9dfac.tar.gz rpi2-gen-image-24bd7e97cf9d07454c9cde74e4d80a1b3de9dfac.tar.bz2 rpi2-gen-image-24bd7e97cf9d07454c9cde74e4d80a1b3de9dfac.zip |
Added: KERNELSRC_PREBUILT, KERNELSRC_ rename, fix-quotes
Diffstat (limited to 'bootstrap.d/12-locale.sh')
-rw-r--r-- | bootstrap.d/12-locale.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bootstrap.d/12-locale.sh b/bootstrap.d/12-locale.sh index 06ad5a5..d82f212 100644 --- a/bootstrap.d/12-locale.sh +++ b/bootstrap.d/12-locale.sh @@ -6,7 +6,7 @@ . ./functions.sh # Install and setup timezone -echo ${TIMEZONE} >$R/etc/timezone +echo ${TIMEZONE} > "$R/etc/timezone" chroot_exec dpkg-reconfigure -f noninteractive tzdata # Install and setup default locale and keyboard configuration @@ -19,40 +19,40 @@ if [ "$ENABLE_MINBASE" = false ] ; then else # en_US.UTF-8 should be available anyway : https://www.debian.org/doc/manuals/debian-reference/ch08.en.html#_the_reconfiguration_of_the_locale chroot_exec echo "locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8, ${DEFLOCAL} UTF-8" | debconf-set-selections - sed -i "/en_US.UTF-8/s/^#//" $R/etc/locale.gen + sed -i "/en_US.UTF-8/s/^#//" "$R/etc/locale.gen" fi - sed -i "/${DEFLOCAL}/s/^#//" $R/etc/locale.gen + sed -i "/${DEFLOCAL}/s/^#//" "$R/etc/locale.gen" chroot_exec echo "locales locales/default_environment_locale select ${DEFLOCAL}" | debconf-set-selections chroot_exec locale-gen - chroot_exec update-locale LANG=${DEFLOCAL} + chroot_exec update-locale LANG="${DEFLOCAL}" # Install and setup default keyboard configuration if [ "$XKB_MODEL" != "" ] ; then - sed -i "s/^XKBMODEL.*/XKBMODEL=\"${XKB_MODEL}\"/" $R/etc/default/keyboard + sed -i "s/^XKBMODEL.*/XKBMODEL=\"${XKB_MODEL}\"/" "$R/etc/default/keyboard" fi if [ "$XKB_LAYOUT" != "" ] ; then - sed -i "s/^XKBLAYOUT.*/XKBLAYOUT=\"${XKB_LAYOUT}\"/" $R/etc/default/keyboard + sed -i "s/^XKBLAYOUT.*/XKBLAYOUT=\"${XKB_LAYOUT}\"/" "$R/etc/default/keyboard" fi if [ "$XKB_VARIANT" != "" ] ; then - sed -i "s/^XKBVARIANT.*/XKBVARIANT=\"${XKB_VARIANT}\"/" $R/etc/default/keyboard + sed -i "s/^XKBVARIANT.*/XKBVARIANT=\"${XKB_VARIANT}\"/" "$R/etc/default/keyboard" fi if [ "$XKB_OPTIONS" != "" ] ; then - sed -i "s/^XKBOPTIONS.*/XKBOPTIONS=\"${XKB_OPTIONS}\"/" $R/etc/default/keyboard + sed -i "s/^XKBOPTIONS.*/XKBOPTIONS=\"${XKB_OPTIONS}\"/" "$R/etc/default/keyboard" fi chroot_exec dpkg-reconfigure -f noninteractive keyboard-configuration # Install and setup font console case "${DEFLOCAL}" in *UTF-8) - sed -i 's/^CHARMAP.*/CHARMAP="UTF-8"/' $R/etc/default/console-setup + sed -i 's/^CHARMAP.*/CHARMAP="UTF-8"/' "$R/etc/default/console-setup" ;; *) - sed -i 's/^CHARMAP.*/CHARMAP="guess"/' $R/etc/default/console-setup + sed -i 's/^CHARMAP.*/CHARMAP="guess"/' "$R/etc/default/console-setup" ;; esac chroot_exec dpkg-reconfigure -f noninteractive console-setup else # ENABLE_MINBASE=true # Install POSIX default locale - install_readonly files/locales/locale $R/etc/default/locale + install_readonly files/locales/locale "$R/etc/default/locale" fi |