blob: 4e5102bb1416715ecd725d45c82b928696a95c0d [file] [log] [blame]
#!/bin/sh
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Find device0 on 3.0.x kernels and iio:device0 on 3.2 kernels.
for DEVICE in /sys/bus/iio/devices/*; do
[ -e $DEVICE/illuminance0_calibscale ] && break;
done
# Set the light sensor calibration value.
echo 4 > $DEVICE/illuminance0_calibscale