summaryrefslogtreecommitdiff
path: root/rules/95-devkit-power-battery-recall-gateway.rules
blob: fe08a4ea78e6faacc5db6e85016a523d635ee768 (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
25
26
27
28
##############################################################################################################
# Battery recall notices: Gateway
#
# These are properties defining the behavior:
#  DKP_RECALL_NOTICE
#  DKP_RECALL_VENDOR
#  DKP_RECALL_URL
#

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

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

# only match correct manufacturer
ATTR{manufacturer}!="Gateway", GOTO="dkp_battery_recall_gateway_end"

ATTR{model_name}=="916C4610F", ENV{DKP_RECALL_NOTICE}="1"
ATTR{model_name}=="916C4720F", ENV{DKP_RECALL_NOTICE}="1"
ATTR{model_name}=="916C4730F", ENV{DKP_RECALL_NOTICE}="1"
ATTR{model_name}=="916C5010F", ENV{DKP_RECALL_NOTICE}="1"
ATTR{model_name}=="W230", ENV{DKP_RECALL_NOTICE}="1"

ENV{DKP_RECALL_NOTICE}=="1", ENV{DKP_RECALL_VENDOR}="Gateway", ENV{DKP_RECALL_URL}="http://www.gateway.com/battery/\n"

LABEL="dkp_battery_recall_gateway_end"