Skip to content

Instantly share code, notes, and snippets.

@jmazzi

jmazzi/amcc.diff Secret

Created December 28, 2010 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmazzi/e0e43e59a48cea506cc7 to your computer and use it in GitHub Desktop.
Save jmazzi/e0e43e59a48cea506cc7 to your computer and use it in GitHub Desktop.
--- /usr/lib/ruby/site_ruby/1.8/raid/amcc.rb.orig 2010-12-28 13:27:54.000000000 -0600
+++ /usr/lib/ruby/site_ruby/1.8/raid/amcc.rb 2010-12-28 13:39:26.000000000 -0600
@@ -17,6 +17,7 @@
SG3INQ = "/usr/bin/sg_inq"
def initialize(adapter_num = nil)
+ adapter_num = 0 if (adapter_num.nil? || adapter_num.empty?)
@adapter_num = adapter_num
end
--- /tmp/einarc.orig 2010-12-28 16:02:52.000000000 -0600
+++ /usr/local/bin/einarc 2010-12-28 16:03:17.000000000 -0600
@@ -14,7 +14,9 @@
[ '--adapter', '-a', GetoptLong::REQUIRED_ARGUMENT ]
)
-adapter_type = adapter_num = nil
+adapter_type = nil
+adapter_num = 0
+
$humanize = false
need_list = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment