mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-12-28 08:05:58 -05:00
31 lines
545 B
Bash
31 lines
545 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
#
|
||
|
# Configfiles are from grubfilemanager project
|
||
|
#
|
||
|
|
||
|
cfgfile=../INSTALL/grub/keyboard.cfg
|
||
|
rm -f ${cfgfile}.gz
|
||
|
|
||
|
echo "submenu \"Keyboard Layouts\" --class=debug_krdlayout {" >>$cfgfile
|
||
|
|
||
|
cat >>$cfgfile << EOF
|
||
|
menuentry QWERTY_USA --class=debug_kbd {
|
||
|
setkey -r
|
||
|
setkey -d
|
||
|
}
|
||
|
EOF
|
||
|
|
||
|
ls -1 cfg | while read line; do
|
||
|
kbd=${line%.cfg}
|
||
|
name=${kbd#KBD_}
|
||
|
|
||
|
echo "menuentry $name --class=debug_kbd {" >> $cfgfile
|
||
|
grep '^setkey' cfg/$line >>$cfgfile
|
||
|
echo "}" >> $cfgfile
|
||
|
done
|
||
|
|
||
|
echo "}" >>$cfgfile
|
||
|
|
||
|
gzip $cfgfile
|