diff options
Diffstat (limited to 'resources/utilities')
-rwxr-xr-x | resources/utilities/coreboot-libre/deblob | 4 | ||||
-rwxr-xr-x | resources/utilities/coreboot-libre/findblobs | 26 | ||||
-rwxr-xr-x | resources/utilities/grub-assemble/gen.sh | 36 | ||||
-rwxr-xr-x | resources/utilities/grub-assemble/grub_memdisk_keymap | 2 |
4 files changed, 34 insertions, 34 deletions
diff --git a/resources/utilities/coreboot-libre/deblob b/resources/utilities/coreboot-libre/deblob index 26fb75fa..3ca64bb7 100755 --- a/resources/utilities/coreboot-libre/deblob +++ b/resources/utilities/coreboot-libre/deblob @@ -26,7 +26,7 @@ set -u -e printf "Deleting blobs in coreboot\n" -cd coreboot/ +cd "coreboot/" # --------------------- # Intel SoC (broadwell): CPU microcode updates @@ -161,4 +161,4 @@ rm -f \ printf "\n\n" -cd ../ +cd "../" diff --git a/resources/utilities/coreboot-libre/findblobs b/resources/utilities/coreboot-libre/findblobs index 7d9b5b0e..4fcda2a5 100755 --- a/resources/utilities/coreboot-libre/findblobs +++ b/resources/utilities/coreboot-libre/findblobs @@ -30,29 +30,29 @@ set -e -u # this will have to do. printf "Searching for blobs in coreboot\n" -cp deblob-check ../../../coreboot -cd ../../../coreboot/ +cp "deblob-check" "../../../coreboot" +cd "../../../coreboot/" -chmod +x deblob-check -find -type f | xargs ./deblob-check > blobs -rm -f deblob-check +chmod +x "deblob-check" +find -type f | xargs ./deblob-check > "blobs" +rm -f "deblob-check" -rm -f tocheck -touch tocheck +rm -f "tocheck" +touch "tocheck" for file in $(cat blobs) do - if ! grep -Fxq "$file" ../resources/utilities/coreboot-libre/nonblobs + if ! grep -Fxq "${file}" "../resources/utilities/coreboot-libre/nonblobs" then - echo "$file" >> tocheck + printf "%s\n" "${file}" >> tocheck fi done -rm -f blobs +rm -f "blobs" -rm -f ../resources/utilities/coreboot-libre/tocheck -mv tocheck ../resources/utilities/coreboot-libre +rm -f "../resources/utilities/coreboot-libre/tocheck" +mv "tocheck" "../resources/utilities/coreboot-libre/" -cd ../resources/utilities/coreboot-libre +cd "../resources/utilities/coreboot-libre/" printf "Done! open resources/utilities/coreboot-libre/tocheck in an editor\n" printf "This will contain the names of the files that you must decide whether they are blobs or not\n\n" diff --git a/resources/utilities/grub-assemble/gen.sh b/resources/utilities/grub-assemble/gen.sh index 8174939e..3dfed2cf 100755 --- a/resources/utilities/grub-assemble/gen.sh +++ b/resources/utilities/grub-assemble/gen.sh @@ -11,10 +11,10 @@ set -u -e if (( $# != 1 )); then - echo "Usage: ./gen.sh mode" - echo "Example: ./gen.sh vesafb" - echo "Example: ./gen.sh txtmode" - echo "You need to specify exactly 1 argument" + printf "Usage: ./gen.sh mode\n" + printf "Example: ./gen.sh vesafb\n" + printf "Example: ./gen.sh txtmode\n" + printf "You need to specify exactly 1 argument\n" exit 1 fi @@ -24,36 +24,36 @@ grubdir="../../../grub" source "modules.conf" printf "Creating GRUB ELF executable for configuration '$1'\n" -if [ "$1" = "vesafb" ] +if [ "${1}" = "vesafb" ] then # Generate the grub.elf (vesafb) $grubdir/grub-mkstandalone \ - --grub-mkimage=$grubdir/grub-mkimage \ + --grub-mkimage="${grubdir}/grub-mkimage" \ -O i386-coreboot \ - -o grub_vesafb.elf \ - -d $grubdir/grub-core/ \ + -o "grub_vesafb.elf" \ + -d "${grubdir}/grub-core/" \ --fonts= --themes= --locales= \ - --modules="$grub_modules" \ - --install-modules="$grub_install_modules" \ + --modules="${grub_modules}" \ + --install-modules="${grub_install_modules}" \ /boot/grub/grub.cfg="../../../resources/grub/config/grub_memdisk.cfg" \ /dejavusansmono.pf2="../../../resources/grub/font/dejavusansmono.pf2" \ $(./grub_memdisk_keymap) -elif [ "$1" = "txtmode" ] +elif [ "${1}" = "txtmode" ] then # Generate the grub.elf (txtmode) - $grubdir/grub-mkstandalone \ - --grub-mkimage=$grubdir/grub-mkimage \ + "${grubdir}/grub-mkstandalone" \ + --grub-mkimage="${grubdir}/grub-mkimage" \ -O i386-coreboot \ - -o grub_txtmode.elf \ - -d $grubdir/grub-core/ \ + -o "grub_txtmode.elf" \ + -d "${grubdir}/grub-core/" \ --fonts= --themes= --locales= \ - --modules="$grub_modules" \ - --install-modules="$grub_install_modules" \ + --modules="${grub_modules}" \ + --install-modules="${grub_install_modules}" \ /boot/grub/grub.cfg="../../../resources/grub/config/grub_memdisk.cfg" \ /memtest="../../../memtest86+-5.01/memtest" \ $(./grub_memdisk_keymap) else - echo "grub-assemble gen.sh: invalid mode '$1'" + printf "grub-assemble gen.sh: invalid mode '%s'\n" "${1}" exit 1 fi printf "\n\n" diff --git a/resources/utilities/grub-assemble/grub_memdisk_keymap b/resources/utilities/grub-assemble/grub_memdisk_keymap index df25a0f7..0893c4c3 100755 --- a/resources/utilities/grub-assemble/grub_memdisk_keymap +++ b/resources/utilities/grub-assemble/grub_memdisk_keymap @@ -24,5 +24,5 @@ set -u -e for keymap in $(ls keymap/original) do - printf "/boot/grub/layouts/$keymap.gkb=keymap/$keymap.gkb " + printf "/boot/grub/layouts/$keymap.gkb=keymap/${keymap}.gkb " done |