network-bridge: default to eth0 if no default gateway.

From: Luke Szymanski <Lukasz.Szymanski@unisys.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
Keir Fraser committed 2007-09-21 17:22:15 +01:00
1 parent 0700c962ac
commit 1106867cc9
1 file changed
+1
+1
View File
@@ -58,6 +58,7 @@ evalVariables "$@"
netdev=${netdev:-$(ip route list | awk '/^default / { print $NF }' |
sed 's/.* dev //')}
netdev=${netdev:-eth0}
bridge=${bridge:-${netdev}}
antispoof=${antispoof:-no}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.