Hi, I made some change in elsedetect code to show quiet info (just module to load). So there strange things (Need lastest git code) :
lib/device.rb:179:
print "[Vendor = " + to_exa(@vendorID).to_s + "] "
print "[Device = " + to_exa(@deviceID).to_s + "] "
print "[SubVendorID = " + to_exa(@subvendorID).to_s + "] "
print "[SubDeviceID = " + to_exa(@subdeviceID).to_s + "] "
display_peripherical_name(@vendorID,@deviceID,@subvendorID,@subdeviceID)
print "[Kernel_Module = " + @kernel_module.to_s + "]\n"
lib/kernel_module.rb:31:
print "[Module = " + @ker_module + "] "
print "[Device = " + @deviceID + "] "
print "[Vendor = " + @vendorID + "] "
print "[SubVendor = " + @sub_vendorID + "] "
print "[SubDevicee = " + @sub_deviceID + "]\n"
Why do we do two times the same things ?
So, the result is so twice :
~/else/basile2/rimelse/elsedetect % ruby -Ilib bin/elsedetect.rb
Searching for devices ...
Module = i2c-nforce2
Module = i2c-nforce2
Module = snd-intel8x0
Module = snd-intel8x0
Module = k8temp
Module = k8temp
Module = sky2
Module = sky2
~/else/basile2/rimelse/elsedetect %
Could someone explan me that behaviour ?
It would be nice to review all the code IMHO (As I think that
bin/elsedetect.rb do too much things that could be done in a lib, and
that lib are not well segmented).
--
Beber - E-Mail / Jabber (+GMail) : beber_AT_meleeweb.net
http://www.meleeweb.net
pgp9l1WkNJdJi.pgp
Description: PGP signature
