3 # Script to create a list of menu items for the keyboard selection.
4 # This is specific for SYSLINUX/ISOLINUX.
11 location
=/usr
/share
/keymaps
/i386
15 echo "Looking for keymaps at $location ..."
18 # Compose header for 'output' file
22 MENU TITLE Keyboard map
28 find $location \
( ! -path '*fgGIod*' -a ! -path '*include*' \
) |
sort | \
31 test -f "$line" ||
continue;
34 category
="${category##*/}" # Extract up the last level.
35 file="${line##*/}" # Full file name.
36 file="${file%.map*}" # Get the rid of file extension.
38 # Add body content to 'output' file
40 # Make default entry, help text
41 if test "${category}/$file" = qwerty
/us
44 LABEL ${category}/$file
45 MENU LABEL ^${category}/$file
48 APPEND dragora RC_KEYMAP=${category}/$file
50 This menu is organized as keyboard "Layout/Language".
51 Select a keyboard map for the console before booting:
52 ${category}/$file [default]
60 LABEL ${category}/$file
61 MENU LABEL ${category}/$file
63 APPEND dragora RC_KEYMAP=${category}/$file
65 This menu is organized as keyboard "Layout/Language".
66 Select a keyboard map for the console before booting:
72 # Compose footer for 'output' file
78 MENU LABEL ^Return to main menu
83 echo "Output file: $output"