diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:37 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:25:54 +0100 |
commit | 3d52fbcb4fe70132ade14759d76573b471294800 (patch) | |
tree | 7ee8e69a62e032cb427e6b3ae96481ae4e8c9df8 /scripts/live-bottom/19keyboard | |
parent | 9fc9e2a1a11b0edada38cb501fefe4f58aa414ac (diff) | |
download | live-boot-3d52fbcb4fe70132ade14759d76573b471294800.tar.gz live-boot-3d52fbcb4fe70132ade14759d76573b471294800.zip |
Adding live-initramfs 1.87.3-1.
Diffstat (limited to 'scripts/live-bottom/19keyboard')
-rwxr-xr-x | scripts/live-bottom/19keyboard | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/scripts/live-bottom/19keyboard b/scripts/live-bottom/19keyboard index d43e329..31cdfaa 100755 --- a/scripts/live-bottom/19keyboard +++ b/scripts/live-bottom/19keyboard @@ -20,27 +20,29 @@ esac log_begin_msg "$DESCRIPTION" -kbd=us +kbd= cslayout= csvariant= csmodel= -for x in $(cat /proc/cmdline); do - case $x in - kbd-chooser/method=*) - kbd=${x#kbd-chooser/method=} - ;; - console-setup/layoutcode=*) - cslayout=${x#console-setup/layoutcode=} - ;; - console-setup/variantcode=*) - csvariant=${x#console-setup/variantcode=} - ;; - console-setup/modelcode=*) - csmodel=${x#console-setup/modelcode=} - ;; - esac -done +# commandline +if [ -n "${KBD}" ]; then + kbd="${KBD}" +else + kbd=us +fi + +really_export kbd + +if [ -n "${KLAYOUT}" ]; then + cslayout="${KLAYOUT}" +fi +if [ -n "${KVARIANT}" ]; then + csvariant="${KVARIANT}" +fi +if [ -n "${KMODEL}" ]; then + csmodel="${KMODEL}" +fi if [ -x /root/bin/setupcon ] && [ -f /root/etc/default/console-setup ]; then if [ "$cslayout" ]; then @@ -66,5 +68,6 @@ if [ -x /root/bin/setupcon ] && [ -f /root/etc/default/console-setup ]; then else chroot /root /usr/sbin/install-keymap $kbd live-preseed /root debian-installer/keymap "$kbd" + live-preseed /root kbd-chooser/method "$kbd" fi log_end_msg |