#!/bin/bash
# Load gparted live functions
. /usr/share/gparted/bin/gl-functions

[ -e /etc/gparted-live/gparted-live.conf ] && . /etc/gparted-live/gparted-live.conf

if [ -z "$gl_kbd" -a -z "$keyb" ]; then
  dpkg-reconfigure console-data
elif [ -n "$keyb" ]; then
  install-keymap ${keyb}
elif [ -n "$gl_kbd" ]; then
  # gl_kbd is for backward compatibility. In the future, we should use keyb from live-initramfs.
  install-keymap ${gl_kbd}
fi
