occ-active.sh: case insensitive for sensor names
Allows to have the OCC sensor name in upper case.
(From meta-openpower rev: f1486ebc6fded8d172a405b8b30df65951efa1cd)
Change-Id: I64176bce133b42607d4c532f25186658d2680a7f
Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh b/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
index a6097e5..dc1f39b 100755
--- a/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
+++ b/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
@@ -14,7 +14,7 @@
OCC_CONTROL_SERVICE="org.open_power.OCC.Control"
-busctl tree $OCC_CONTROL_SERVICE --list | grep occ | xargs -r -n1 -I{} \
+busctl tree $OCC_CONTROL_SERVICE --list | grep -i occ | xargs -r -n1 -I{} \
busctl set-property $OCC_CONTROL_SERVICE {} org.open_power.OCC.Status \
OccActive b $value
exit 0