aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Schonken <olivier.schonken@gmail.com>2021-06-02 15:33:19 +0200
committerOlivier Schonken <olivier.schonken@gmail.com>2021-06-02 15:33:19 +0200
commitfaaaf84e9c98adcc6246330e77901b347f17ddda (patch)
tree2ccc3a85182376ec75383283c1d21c8a1b8e3211
parente2d0b895abd69c6dbd13202a74021be35e912a5d (diff)
downloadmeta-qcom-faaaf84e9c98adcc6246330e77901b347f17ddda.tar.gz
meta-qcom-faaaf84e9c98adcc6246330e77901b347f17ddda.tar.bz2
meta-qcom-faaaf84e9c98adcc6246330e77901b347f17ddda.zip
lt9611uxc-upgrade script: Only cat firmware version when it exists
Update script to only execute cat in directories where lt9611uxc_firmware exists. On my system both module and 5-002b are symbolic links, thus the previous script would cause the lt9611uxc firmware update systemd unit to fail because the script would try to access lt9611uxc_firmware in the module directory and return a failure which would cause the systemd service to be listed under 'systemctl list-units --failed' Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
-rw-r--r--recipes-bsp/lt9611uxc-upgrade/lt9611uxc-upgrade/lt9611uxc-upgrade.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-bsp/lt9611uxc-upgrade/lt9611uxc-upgrade/lt9611uxc-upgrade.sh b/recipes-bsp/lt9611uxc-upgrade/lt9611uxc-upgrade/lt9611uxc-upgrade.sh
index 0886980..9f72525 100644
--- a/recipes-bsp/lt9611uxc-upgrade/lt9611uxc-upgrade/lt9611uxc-upgrade.sh
+++ b/recipes-bsp/lt9611uxc-upgrade/lt9611uxc-upgrade/lt9611uxc-upgrade.sh
@@ -13,7 +13,7 @@ if [ ! -d /sys/bus/i2c/drivers/lt9611uxc ] ; then
fi
for f in /sys/bus/i2c/drivers/lt9611uxc/* ; do
- [ -L $f ] || continue
+ [ -e $f/lt9611uxc_firmware ] || continue
version=`cat $f/lt9611uxc_firmware`
if [ "$version" -lt "43" ] ; then
echo > $f/lt9611uxc_firmware