95-upower-battery-recall-fujitsu.rules 1.18 KB
Newer Older
1 2 3 4
##############################################################################################################
# Battery recall notices: Fujitsu
#
# These are properties defining the behavior:
5 6 7
#  UPOWER_RECALL_NOTICE
#  UPOWER_RECALL_VENDOR
#  UPOWER_RECALL_URL
8 9 10
#

# only match power_supply devices
11
SUBSYSTEM!="power_supply", GOTO="up_battery_recall_fujitsu_end"
12 13

# only match batteries
14
ATTR{type}!="Battery", GOTO="up_battery_recall_fujitsu_end"
15 16

# only match correct manufacturer
17
ATTR{manufacturer}!="Fujitsu", GOTO="up_battery_recall_fujitsu_end"
18

19 20 21 22 23 24 25 26
ATTR{model_name}=="CP255100", ENV{UPOWER_RECALL_NOTICE}="1"
ATTR{model_name}=="CP255108", ENV{UPOWER_RECALL_NOTICE}="1"
ATTR{model_name}=="CP229720", ENV{UPOWER_RECALL_NOTICE}="1"
ATTR{model_name}=="CP229725", ENV{UPOWER_RECALL_NOTICE}="1"
ATTR{model_name}=="CP234003", ENV{UPOWER_RECALL_NOTICE}="1"
ATTR{model_name}=="CP234019", ENV{UPOWER_RECALL_NOTICE}="1"
ATTR{model_name}=="CP283030", ENV{UPOWER_RECALL_NOTICE}="1"
ATTR{model_name}=="CP267910", ENV{UPOWER_RECALL_NOTICE}="1"
27

28
ENV{UPOWER_RECALL_NOTICE}=="1", ENV{UPOWER_RECALL_VENDOR}="Fujitsu", ENV{UPOWER_RECALL_URL}="http://www.computers.us.fujitsu.com/battery/"
29

30
LABEL="up_battery_recall_fujitsu_end"
31