summaryrefslogtreecommitdiff
path: root/rules/95-upower-battery-recall-ibm.rules
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-01-21 15:04:07 +0000
committerRichard Hughes <richard@hughsie.com>2010-01-21 15:04:07 +0000
commit4c2605487305db0c69796a968189722c45d34a5e (patch)
tree028e2b557d0e9488f4bd6a6586d04c0d5348d64b /rules/95-upower-battery-recall-ibm.rules
parente22cf3d9c0fa07cd80b52a6ebec2345deae98a93 (diff)
trivial: renamed the udev rule filenames
Diffstat (limited to 'rules/95-upower-battery-recall-ibm.rules')
-rw-r--r--rules/95-upower-battery-recall-ibm.rules38
1 files changed, 38 insertions, 0 deletions
diff --git a/rules/95-upower-battery-recall-ibm.rules b/rules/95-upower-battery-recall-ibm.rules
new file mode 100644
index 0000000..860a41c
--- /dev/null
+++ b/rules/95-upower-battery-recall-ibm.rules
@@ -0,0 +1,38 @@
+##############################################################################################################
+# Battery recall notices: IBM
+#
+# 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_ibm_end"
+
+# only match batteries
+ATTR{type}!="Battery", GOTO="up_battery_recall_ibm_end"
+
+# only match correct manufacturer
+ATTR{manufacturer}!="SONY", GOTO="up_battery_recall_ibm_end"
+
+# only recalled on some particular models
+ATTR{[dmi/id]product_version}!="*R60*|*T60*|*Z60m*|*Z61e*|*Z61m*|*Z61p*", GOTO="up_battery_recall_ibm_end"
+
+ATTR{model_name}=="92P1072", ENV{UPOWER_RECALL_NOTICE}="1"
+ATTR{model_name}=="92P1073", ENV{UPOWER_RECALL_NOTICE}="1"
+ATTR{model_name}=="92P1088", ENV{UPOWER_RECALL_NOTICE}="1"
+ATTR{model_name}=="92P1089", ENV{UPOWER_RECALL_NOTICE}="1"
+ATTR{model_name}=="92P1142", ENV{UPOWER_RECALL_NOTICE}="1"
+ATTR{model_name}=="92P1141", ENV{UPOWER_RECALL_NOTICE}="1"
+ATTR{model_name}=="92P1170", ENV{UPOWER_RECALL_NOTICE}="1"
+ATTR{model_name}=="92P1169", ENV{UPOWER_RECALL_NOTICE}="1"
+ATTR{model_name}=="93P5028", ENV{UPOWER_RECALL_NOTICE}="1"
+ATTR{model_name}=="92P1174", ENV{UPOWER_RECALL_NOTICE}="1"
+ATTR{model_name}=="92P1173", ENV{UPOWER_RECALL_NOTICE}="1"
+ATTR{model_name}=="93P5030", 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_ibm_end"
+