summaryrefslogtreecommitdiff
path: root/modules/pc/udev/z010_mchp_tools.nix
blob: e23520947a75b1d90bde87d584f6c447e24898d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  services.udev.extraRules = ''
    # 2018.09.11 Remove calls to mchplinusbdevice.
    # 2017.09.25 Added check for Microchip product IDs.
    # 2017.03,03 Added check for Atmel tools.
    # 2012.01.23 Changed SYSFS reference(s) to ATTR.
    # 2011.12.15 Note: Reboot works on all systems to have rules file recognized.
    # 2010.01.26 Add reference to "usb" for Ubuntu.
    # 2010.01.22 Attempt to further simplify rules files requirements.
    # 2009.08.18 Rules file simplified.
    # 2009.07.15 Rules file created.

    ACTION!="add", GOTO="rules_end"
    SUBSYSTEM=="usb_device", GOTO="check_add"
    SUBSYSTEM!="usb", GOTO="rules_end"

    LABEL="check_add"

    ATTR{idVendor}=="04d8", ATTR{idProduct}=="8???", MODE="666"
    ATTR{idVendor}=="04d8", ATTR{idProduct}=="9???", MODE="666"
    ATTR{idVendor}=="04d8", ATTR{idProduct}=="a0??", MODE="666"
    ATTR{idVendor}=="04d8", ATTR{idProduct}=="00e0", MODE="666"
    ATTR{idVendor}=="04d8", ATTR{idProduct}=="00e1", MODE="666"
    ATTR{idVendor}=="03eb", ATTR{idProduct}!="6124", MODE="666"

    LABEL="rules_end"
  '';
}