summaryrefslogtreecommitdiff
path: root/rules/95-devkit-power-battery-recall-fujitsu.rules
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2009-07-03 11:53:34 +0100
committerRichard Hughes <richard@hughsie.com>2009-07-03 11:53:34 +0100
commit5380720f959541a949346033c511cecc83ba977a (patch)
tree4af2f4f63c04d716f180d9af73c0c10442405009 /rules/95-devkit-power-battery-recall-fujitsu.rules
parentdb41483230c7f5ad221be0167922cc42bf762634 (diff)
Move the udev rules to thier own directory
Diffstat (limited to 'rules/95-devkit-power-battery-recall-fujitsu.rules')
-rw-r--r--rules/95-devkit-power-battery-recall-fujitsu.rules31
1 files changed, 31 insertions, 0 deletions
diff --git a/rules/95-devkit-power-battery-recall-fujitsu.rules b/rules/95-devkit-power-battery-recall-fujitsu.rules
new file mode 100644
index 0000000..7d95e36
--- /dev/null
+++ b/rules/95-devkit-power-battery-recall-fujitsu.rules
@@ -0,0 +1,31 @@
+##############################################################################################################
+# Battery recall notices: Fujitsu
+#
+# 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_fujitsu_end"
+
+# only match batteries
+ATTR{type}!="Battery", GOTO="dkp_battery_recall_fujitsu_end"
+
+# only match correct manufacturer
+ATTR{manufacturer}!="Fujitsu", GOTO="dkp_battery_recall_fujitsu_end"
+
+ATTR{model_name}=="CP255100", ENV{DKP_RECALL_NOTICE}="1"
+ATTR{model_name}=="CP255108", ENV{DKP_RECALL_NOTICE}="1"
+ATTR{model_name}=="CP229720", ENV{DKP_RECALL_NOTICE}="1"
+ATTR{model_name}=="CP229725", ENV{DKP_RECALL_NOTICE}="1"
+ATTR{model_name}=="CP234003", ENV{DKP_RECALL_NOTICE}="1"
+ATTR{model_name}=="CP234019", ENV{DKP_RECALL_NOTICE}="1"
+ATTR{model_name}=="CP283030", ENV{DKP_RECALL_NOTICE}="1"
+ATTR{model_name}=="CP267910", ENV{DKP_RECALL_NOTICE}="1"
+
+ENV{DKP_RECALL_NOTICE}=="1", ENV{DKP_RECALL_VENDOR}="Fujitsu", ENV{DKP_RECALL_URL}="http://www.computers.us.fujitsu.com/battery/"
+
+LABEL="dkp_battery_recall_fujitsu_end"
+