summaryrefslogtreecommitdiff
path: root/rules/95-devkit-power-battery-recall-lenovo.rules
blob: 04db19ec5b86be4d0ba746c5d22b59f0de316ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
##############################################################################################################
# Battery recall notices: Lenovo
#
# These are properties defining the behavior:
#  UPOWER_RECALL_NOTICE
#  UPOWER_RECALL_VENDOR
#  UPOWER_RECALL_URL
#

# only match power_supply devices
SUBSYSTEM!="power_supply", GOTO="up_battery_recall_lenovo_end"

# only match batteries
ATTR{type}!="Battery", GOTO="up_battery_recall_lenovo_end"

# only match correct manufacturer
ATTR{manufacturer}!="SANYO", GOTO="up_battery_recall_lenovo_end"

ATTR{model_name}=="92P1131", ENV{UPOWER_RECALL_NOTICE}="1"

ENV{UPOWER_RECALL_NOTICE}=="1", ENV{UPOWER_RECALL_VENDOR}="LENOVO", ENV{UPOWER_RECALL_URL}="http://www.lenovo.com/batteryprogram"

LABEL="up_battery_recall_lenovo_end"