]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - KBD/mkconfig.sh
support for 360Udisk
[Ventoy.git] / KBD / mkconfig.sh
1 #!/bin/sh
2
3 #
4 # Configfiles are from grubfilemanager project
5 #
6
7 cfgfile=../INSTALL/grub/keyboard.cfg
8 rm -f ${cfgfile}.gz
9
10 echo "submenu \"Keyboard Layouts\" --class=debug_krdlayout {" >>$cfgfile
11
12 cat >>$cfgfile << EOF
13 menuentry QWERTY_USA --class=debug_kbd {
14 setkey -r
15 setkey -d
16 }
17 EOF
18
19 ls -1 cfg | while read line; do
20 kbd=${line%.cfg}
21 name=${kbd#KBD_}
22
23 echo "menuentry $name --class=debug_kbd {" >> $cfgfile
24 grep '^setkey' cfg/$line >>$cfgfile
25 echo "}" >> $cfgfile
26 done
27
28 echo "}" >>$cfgfile
29
30 gzip $cfgfile