From c973b959092626e90ed8929d15c5b20e50ab5e9e Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 20 May 2023 20:10:19 +0100 Subject: build/payload/grub: rename functions for clarity Signed-off-by: Leah Rowe --- resources/scripts/build/payload/grub | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'resources/scripts') diff --git a/resources/scripts/build/payload/grub b/resources/scripts/build/payload/grub index d170f501..23765f47 100755 --- a/resources/scripts/build/payload/grub +++ b/resources/scripts/build/payload/grub @@ -44,13 +44,13 @@ main() # Separate GRUB payload per keymap to save space in ROM. for keylayoutfile in ${grubcfgsdir}/keymap/*.gkb; do - build_grub_payload "${keylayoutfile}" + build_grub_payloads "${keylayoutfile}" done printf "Done! Check payload/grub/ to see the files.\n\n" } -build_grub_payload() +build_grub_payloads() { keylayoutfile=${1} @@ -61,7 +61,7 @@ build_grub_payload() keymap="${keymap%.gkb}" build_grub_elf "${keylayoutfile}" - create_grub_configs + create_grub_config printf "Created 'payload/grub/grub_%s.elf' and configs.'\n" \ "${keymap}" @@ -85,7 +85,7 @@ build_grub_elf() ${gcfg} ${grubk} } -create_grub_configs() +create_grub_config() { sed "s/usqwerty/${keymap}/" \ < ${grubcfgsdir}/config/grub.cfg \ -- cgit v1.2.1