retrieving mac address on non-english locale fails
Bug #790352 reported by
Patrick Brueckner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Net Responsibility |
New
|
Undecided
|
Unassigned |
Bug Description
net responsibility uses ifconfig to get mac-address for interfaces.
when used on a non-english locale, grep fails, since it doesn't find the required keyword (HWAddr).
Forcing the command to run with the english locale fixes this problem.
To post a comment you must log in.
Thanks Patrick! Finally this bug is solved.
For you who didn't follow: net-responsibil ity/lib/ options. rb as root to edit. Find this line:
Open /usr/share/
IO.popen("ifconfig -a | grep HWaddr | cut -c39-") do |mac_addr|
Replace it with this line: "LC_ALL= en_EN ifconfig -a | grep HWaddr | cut -c39-") do |mac_addr|
IO.popen(
That should do the trick.