blob: 831b823c84a5672cf43f4f0c4755426f91c8ebd4 [file] [log] [blame]
# Copyright 2021 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.
ACTION=="add", KERNEL=="i2c-GOOG0020:00", \
RUN{program}+="/lib/udev/hps-dev.sh %p", \
RUN{program}+="/sbin/initctl start --no-wait hpsd"
# TODO(skyostil): Use SECLABEL{selinux} once it is supported in udev.
ACTION=="add", KERNEL=="cros-hps", SUBSYSTEM=="misc", \
MODE="0660", GROUP="hpsd", \
RUN{program}+="/usr/bin/chcon -t cros_hps_device $devnode"