[issue550] defaultGWDev does not always get the right device

schula bts at bts.grml.org
Sun Oct 12 10:59:45 CEST 2008


New submission from schula <schula at grml.org>:

If there is a default route not via an ip address but just for a device
defaultGWDev returns the wrong device name, as the device is in the third row
not the fifth.

Use 
route -en | awk '/^0.0.0.0/ {print $8}'
instead of
ip r s | awk '/^default/ {print $5}'

----------
messages: 1592
nosy: schula
priority: bug
status: unread
title: defaultGWDev does not always get the right device

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue550>
_____________________________________


More information about the Bugs-changes mailing list