summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-06-28 00:16:22 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-06-28 00:17:55 +0200
commit15328d84d29a5080a49096aee4689ef50c8c2b9e (patch)
tree34218c7d7516b74e970b8d44c6e6eea8ef6ea826 /rules
parent50579295272b744208519037c6931d1e6569e6f0 (diff)
rules: set polling value only if it is disabled
Diffstat (limited to 'rules')
-rw-r--r--rules/rules.d/60-persistent-storage.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/rules.d/60-persistent-storage.rules b/rules/rules.d/60-persistent-storage.rules
index 5c12cb72d4..5c2689b885 100644
--- a/rules/rules.d/60-persistent-storage.rules
+++ b/rules/rules.d/60-persistent-storage.rules
@@ -9,7 +9,7 @@ ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block",
ACTION=="remove", GOTO="persistent_storage_end"
# enable in-kernel media-presence polling
-ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_poll_msecs}="2000"
+ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_poll_msecs}=="0", ATTR{parameters/events_dfl_poll_msecs}="2000"
SUBSYSTEM!="block", GOTO="persistent_storage_end"