From: David Woodhouse Date: Thu, 9 Jul 2020 08:56:18 +0000 (+0100) Subject: mediatek: fix bashism in gen_banana_pi_img.sh X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f632747704f172e5c6d3a7c5715dc8d2f50d8da8;p=openwrt%2Fstaging%2Fneocturne.git mediatek: fix bashism in gen_banana_pi_img.sh 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 --- diff --git a/target/linux/mediatek/image/gen_banana_pi_img.sh b/target/linux/mediatek/image/gen_banana_pi_img.sh index 26fbca1388..d46e92fa42 100755 --- a/target/linux/mediatek/image/gen_banana_pi_img.sh +++ b/target/linux/mediatek/image/gen_banana_pi_img.sh @@ -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 " echo " OR: $0 emmc " exit 1