summaryrefslogtreecommitdiff
diff options
authorUbuntu <ubuntu@cert-jenkins-slave-1-201406-15260.maas>2022-07-15 07:40:38 +0000
committerUbuntu <ubuntu@cert-jenkins-slave-1-201406-15260.maas>2022-07-15 07:40:38 +0000
commita268c57eff4329ad7c0d252e250dfda176a40a91 (patch)
tree301ceac79d14746e113126cbfa1bb67e2ae04b83
parent3c36e1e68330d7cccd372db2a7bc697210fc10bf (diff)
parent28e3a3ca0fc32d8fc48711e063442c71f04ec327 (diff)
Merge #426856 from ~clairlin/plainbox-provider-checkbox:fix_ALS_detect
-rwxr-xr-xbin/light_sensor_test.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/light_sensor_test.sh b/bin/light_sensor_test.sh
index cb8fbe9..494ca39 100755
--- a/bin/light_sensor_test.sh
+++ b/bin/light_sensor_test.sh
@@ -1,16 +1,16 @@
#!/bin/bash
#Check if light sensor driver available, this section will be retired after checkbox resource jobs implement the light sensor in Device check
-#Bug for reference https://bugs.launchpad.net/checkbox-support/+bug/1864960
-als_sensors=$(udevadm info --export-db|grep hid_sensor_als)
+#Bug for reference LP #1864960 and LP #1980797
+als_sensors=$(udevadm info --export-db|grep IIO_SENSOR_PROXY_TYPE |grep als)
-#Check hid_sensor_als driver is loaded and available first.
+#Check iio_sensor_als is ready and available first.
if [ -z "$als_sensors" ]
then
- echo "Light sensor driver not found"
+ echo "Light sensor is not found"
exit 1
else
- echo "Light sensor driver is available"
+ echo "Light sensor is available"
echo "$als_sensors"
fi