Fix 'findgw'

This commit is contained in:
Tom Eastep
2009-06-04 13:03:56 -07:00
parent 252c8c0c8d
commit 7621859e0f
3 changed files with 6 additions and 1 deletions

View File

@@ -811,7 +811,7 @@ detect_dynamic_gateway() { # $1 = interface
gateway=$(run_findgw_exit $1);
if [ -n "$gateway" ]; then
if [ -z "$gateway" ]; then
gateway=$( find_peer $($IP addr list $interface ) )
fi