|
Bugzilla – Full Text Bug Listing |
| Summary: | yast2-network seems to require ethtool | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 10.3 | Reporter: | Lukas Ocilka <locilka> |
| Component: | YaST2 | Assignee: | Katarina Machalkova <kmachalkova> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Normal | ||
| Priority: | P5 - None | ||
| Version: | Alpha 2 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | YaST logs | ||
|
Description
Lukas Ocilka
2007-03-21 13:51:54 UTC
[bash] ShellCommand.cc(shellcommand):78 sh: ethtool: command not found Created attachment 125726 [details]
YaST logs
ethtool is called before the internet test, in order to find the best device for internet connection, i.e. the one that has link up. I'd like to replace ethtool call with something more handy because ethtool does not work e.g. on virtual network adapters on s390 hwinfo has 'Link:' key which (probably) provides the same functionality as ethtool and then grep for 'Link detected' But - seems that this information is not available everywhere. I have 1 machine with old Realtek RT8139 cards that happily provide 'Link' information and the other, with nVidia's Giga-byte GA-K8N onboard card (forcedeth driver), where hwinfo returns empty Link key. Steffen, how does all this work? Why certain cards provide hwinfo with link status information and the others do not? Can I rely upon hwinfo when I want to find out whether the device is connected to the cable/access point? Unfortunately, not all cards provide link information and even worse, if they do, it is not always correct. At least that was my experience when I tried to use it in linuxrc. Was some time ago, though. Maybe worth a re-check. Anyway, the link info seems to be in sysfs now. So using ethtool should no longer be necessary. To clarify: libhd uses the ethtool ioctls, it does not run the _command_. 'cat /sys/class/net/eth0/device/eth0/carrier' is the right command. Works even for s390 virtual devices ;-) Steffen, I think also hwinfo could read and provide that information from sysfs. For yast-network module of course that's not problem - not too much work, but it would be nice to have this information from tool which was made for this purpose. man hwinfo: ... hwinfo is used to probe for the hardware present in the system ... So I think hardware status should be part of this information, agree? I've added IsConnected() function to NetworkDevices that returns link status for given device (reading sysfs) Let's make this hwinfo thingy (comment #8) a separate bug report (enhancement request respectively) . Ok, changed hwinfo to try sysfs and ethtool to get the link state. Can we get some hwinfo STABLE pack (mbuild job etc.) for testing? Link state of network devices is no longer obtained from ethtool. Fixed in yast2 2.15.33. |