summaryrefslogtreecommitdiff
path: root/configs/install-iso
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-03-10 14:14:35 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-03-10 14:14:35 -0700
commit31c277e575141b4138e924a04562520cb7ce75bc (patch)
treec5beca720762c172f2f6a83835f941d58ef5fc5e /configs/install-iso
parent28deaee0f02b547baee725b23f068cc5d46dbf47 (diff)
downloadarchiso32-31c277e575141b4138e924a04562520cb7ce75bc.tar.xz
Replace 'km' with a call to AIF's partial keymap
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'configs/install-iso')
-rwxr-xr-xconfigs/install-iso/overlay/usr/bin/km49
1 files changed, 1 insertions, 48 deletions
diff --git a/configs/install-iso/overlay/usr/bin/km b/configs/install-iso/overlay/usr/bin/km
index c8d4817..e24d780 100755
--- a/configs/install-iso/overlay/usr/bin/km
+++ b/configs/install-iso/overlay/usr/bin/km
@@ -1,49 +1,2 @@
#!/bin/bash
-
-ANSWER=$(mktemp)
-BASEDIR="/usr/share/kbd"
-
-domenu()
-{
- menutype=$1 ; shift
- text=$1 ; shift
- height=$1 ; shift
- width=$1 ; shift
- mheight=$1 ; shift
-
- dialog --cancel-label "Skip" --$menutype "$text" $height $width $mheight $*
-}
-
-KEYMAPS=
-for i in $(find $BASEDIR/keymaps -name "*.gz" | sort); do
- KEYMAPS="$KEYMAPS ${i##$BASEDIR/keymaps/} -"
-done
-domenu menu "Select A Keymap" 22 60 16 $KEYMAPS 2>$ANSWER
-keymap=$(cat $ANSWER)
-
-FONTS=
-# skip .cp.gz and partialfonts files for now see bug #6112, #6111
-for i in $(find $BASEDIR/consolefonts -maxdepth 1 ! -name '*.cp.gz' -name "*.gz" | sed 's|^.*/||g' | sort); do
- FONTS="$FONTS $i -"
-done
-domenu menu "Select A Console Font" 22 60 16 $FONTS 2>$ANSWER
-font=$(cat $ANSWER)
-
-if [ "$keymap" ]; then
- loadkeys -q $BASEDIR/keymaps/$keymap
-fi
-
-if [ "$font" ]; then
- for i in $(seq 1 4); do
- if [ -d /dev/vc ]; then
- setfont $BASEDIR/consolefonts/$font -C /dev/vc/${i}
- else
- setfont $BASEDIR/consolefonts/$font -C /dev/tty${i}
- fi
- done
-fi
-
-rm -f $ANSWER
-clear
-exit 0
-
+aif -p partial-keymap