diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8mn-dvk/install_linux_fw_uuu.sh b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8mn-dvk/install_linux_fw_uuu.sh index 063121223..6ef574712 100755 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8mn-dvk/install_linux_fw_uuu.sh +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8mn-dvk/install_linux_fw_uuu.sh @@ -19,15 +19,7 @@ clear # Parse uuu cmd output function getenv() { - while read line; do - if echo "${line}" | grep -i "$1"; then - # Get the U-boot variable content - echo "${line}" | sed -e 's,'${1}=',,g' - else - # Delete the line to return nothing - sed -e 'd' - fi - done < <(uuu -v fb: ucmd printenv ${1}) + uuu -v fb: ucmd printenv "${1}" | sed -ne "s,^${1}=,,g;T;p" } # diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8x-sbc-pro/install_linux_fw_uuu.sh b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8x-sbc-pro/install_linux_fw_uuu.sh index 99b703b39..a6f91ebd7 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8x-sbc-pro/install_linux_fw_uuu.sh +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx8x-sbc-pro/install_linux_fw_uuu.sh @@ -19,15 +19,7 @@ clear # Parse uuu cmd output function getenv() { - while read line; do - if echo "${line}" | grep -i "$1"; then - # Get the U-boot variable content - echo "${line}" | sed -e 's,'${1}=',,g' - else - # Delete the line to return nothing - sed -e 'd' - fi - done < <(uuu -v fb: ucmd printenv ${1}) + uuu -v fb: ucmd printenv "${1}" | sed -ne "s,^${1}=,,g;T;p" } #