From 4c2605487305db0c69796a968189722c45d34a5e Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 21 Jan 2010 15:04:07 +0000 Subject: trivial: renamed the udev rule filenames --- rules/95-upower-battery-recall-toshiba.rules | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 rules/95-upower-battery-recall-toshiba.rules (limited to 'rules/95-upower-battery-recall-toshiba.rules') diff --git a/rules/95-upower-battery-recall-toshiba.rules b/rules/95-upower-battery-recall-toshiba.rules new file mode 100644 index 0000000..4119b80 --- /dev/null +++ b/rules/95-upower-battery-recall-toshiba.rules @@ -0,0 +1,29 @@ +############################################################################################################## +# Battery recall notices: Toshiba +# +# 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_toshiba_end" + +# only match batteries +ATTR{type}!="Battery", GOTO="up_battery_recall_toshiba_end" + +# only match correct manufacturer +ATTR{manufacturer}!="TOSHIBA", GOTO="up_battery_recall_toshiba_end" + +ATTR{model_name}=="PA3465U", ENV{UPOWER_RECALL_NOTICE}="1" +ATTR{model_name}=="PA3399U", ENV{UPOWER_RECALL_NOTICE}="1" +ATTR{model_name}=="PA3400U", ENV{UPOWER_RECALL_NOTICE}="1" +ATTR{model_name}=="PA3465U", ENV{UPOWER_RECALL_NOTICE}="1" +ATTR{model_name}=="PA3399U", ENV{UPOWER_RECALL_NOTICE}="1" +ATTR{model_name}=="PA3400U", ENV{UPOWER_RECALL_NOTICE}="1" + +ENV{UPOWER_RECALL_NOTICE}=="1", ENV{UPOWER_RECALL_VENDOR}="Toshiba", ENV{UPOWER_RECALL_URL}="http://bxinfo.toshiba.com/" + +LABEL="up_battery_recall_toshiba_end" + -- cgit v1.2.1