Skip to content

Instantly share code, notes, and snippets.

@cwjohnston
Created May 6, 2010 19:07
Show Gist options
  • Save cwjohnston/392571 to your computer and use it in GitHub Desktop.
Save cwjohnston/392571 to your computer and use it in GitHub Desktop.
<% @node[:block_device].each do |blockdev| -%>
<% if blockdev =~ /^sd./ %>
KERNEL=="<%= blockdev %>", SUBSYSTEM=="block", RUN+="/bin/sh -c '/bin/echo 190 > /sys$DEVPATH/device/timeout'"
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment