summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-08-04 11:34:17 -0700
committerDominik Sliwa <dominik.sliwa@toradex.com>2016-08-17 14:08:52 +0200
commit7e32b145d3d6678fcfbc519e3767eaa8fc6ac7fe (patch)
treea98c03756e865c6f585167853db75ce7948f746e
parent1dbebfaa8efc6b27c40e6782763826162a70ae30 (diff)
u-boot-toradex-fw-utils: fix bashismmeta-toradex_split
Do not use the function keyword, then the script works fine with with Busybox' shell implementation. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--recipes-bsp/u-boot/files/fw_unlock_mmc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-bsp/u-boot/files/fw_unlock_mmc.sh b/recipes-bsp/u-boot/files/fw_unlock_mmc.sh
index f9f253b..86d941c 100644
--- a/recipes-bsp/u-boot/files/fw_unlock_mmc.sh
+++ b/recipes-bsp/u-boot/files/fw_unlock_mmc.sh
@@ -1,5 +1,5 @@
# Give fw_setenv mmcblk0boot0 write permissions
-function fw_setenv() {
+fw_setenv() {
echo 0 > /sys/block/mmcblk0boot0/force_ro
/sbin/fw_setenv "$@"
echo 1 > /sys/block/mmcblk0boot0/force_ro