1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- set -e
- location=/usr/share/keymaps/i386
- output=keys_i386.cfg
- echo ""
- echo "Looking for keymaps at $location ..."
- echo ""
- cat << EOF > $output
- MENU BEGIN keymap
- MENU TITLE Keyboard map
- EOF
- find $location \( ! -path '*fgGIod*' -a ! -path '*include*' \) | sort | \
- while read -r line
- do
- test -f "$line" || continue;
- category="${line%/*}"
- category="${category##*/}"
- file="${line##*/}"
- file="${file%.map*}"
-
-
- if test "${category}/$file" = qwerty/us
- then
- cat << EOF >> $output
- LABEL ${category}/$file
- MENU LABEL ^${category}/$file
- MENU DEFAULT
- COM32 cmd.c32
- APPEND dragora RC_KEYMAP=${category}/$file
- TEXT HELP
- This menu is organized as keyboard "Layout/Language".
- Select a keyboard map for the console before booting:
- ${category}/$file [default]
- ENDTEXT
- EOF
- continue;
- fi
- cat << EOF >> $output
- LABEL ${category}/$file
- MENU LABEL ${category}/$file
- COM32 cmd.c32
- APPEND dragora RC_KEYMAP=${category}/$file
- TEXT HELP
- This menu is organized as keyboard "Layout/Language".
- Select a keyboard map for the console before booting:
- ${category}/$file
- ENDTEXT
- EOF
- done
- cat << EOF >> $output
- MENU SEPARATOR
- LABEL return
- MENU LABEL ^Return to main menu
- MENU EXIT
- MENU END
- EOF
- echo "Output file: $output"
- echo ""
|