blob: 02fe70d581edffc9d857342cb1505d646a21d0a5 [file] [log] [blame] [edit]
# Copyright 2017 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
ACTION=="add", ENV{ID_MODEL}=="Hammer", SUBSYSTEM=="usb", \
DEVPATH=="/devices/pci0000:00/0000:00:12.0/usb1/1-1", \
RUN+="/sbin/initctl emit --no-wait hammer-device-added"
ACTION=="remove", ENV{ID_MODEL}=="Hammer", SUBSYSTEM=="usb", \
DEVPATH=="/devices/pci0000:00/0000:00:12.0/usb1/1-1", \
RUN+="/sbin/initctl emit --no-wait hammer-device-removed"