From 0ca0991f67f34072100685f37909b8db887c2bef Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 4 Aug 2016 11:34:17 -0700 Subject: u-boot-toradex-fw-utils: fix bashism Do not use the function keyword, then the script works fine with with Busybox' shell implementation. Signed-off-by: Stefan Agner Acked-by: Max Krummenacher --- recipes-bsp/u-boot/files/fw_unlock_mmc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes-bsp') 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 -- cgit v1.2.3