mediatek: fix bashism in gen_banana_pi_img.sh
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 9 Jul 2020 08:56:18 +0000 (09:56 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 9 Jul 2020 09:11:31 +0000 (11:11 +0200)
There was a bashism in the script. This fixes the script so that it
doesn't actually require bash, and can be run with any POSIX shell as
its shebang suggests.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
target/linux/mediatek/image/gen_banana_pi_img.sh

index 26fbca13888b4ad772effbd96a9ba598bf09e737..d46e92fa4255d229fce77957b629ba687d747614 100755 (executable)
@@ -78,7 +78,7 @@
 # The contents of the main eMMC are identical to the SD card layout,
 # with the preloader loading 512KiB of U-Boot starting at 0x50000.
 
-function usage() {
+usage() {
     echo "SYNTAX: $0 sd <file> <preloader image> <u-boot image> <bootfs image> <rootfs image> <bootfs size> <rootfs size>"
     echo " OR:    $0 emmc <file> <preloader image>"
     exit 1