diff options
author | David Woodhouse <dwmw2@infradead.org> | 2020-07-09 09:56:18 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-07-09 11:11:31 +0200 |
commit | f632747704f172e5c6d3a7c5715dc8d2f50d8da8 (patch) | |
tree | 59ebc807d1bd4acb5cfbc158162197f10194e6d0 | |
parent | 1337093e87b42c06cd524a253d4081f186508e1d (diff) | |
download | upstream-f632747704f172e5c6d3a7c5715dc8d2f50d8da8.tar.gz upstream-f632747704f172e5c6d3a7c5715dc8d2f50d8da8.tar.bz2 upstream-f632747704f172e5c6d3a7c5715dc8d2f50d8da8.zip |
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 <dwmw2@infradead.org>
-rwxr-xr-x | target/linux/mediatek/image/gen_banana_pi_img.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 <file> <preloader image> <u-boot image> <bootfs image> <rootfs image> <bootfs size> <rootfs size>" echo " OR: $0 emmc <file> <preloader image>" exit 1 |