summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet
diff options
context:
space:
mode:
authorRémy Oudompheng <remy@archlinux.org>2011-07-30 16:03:24 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-07-30 16:03:24 +0200
commit0d6aa6cebccdf03b4c3b966721f4ebe3723dce8e (patch)
treee466d7729d4b144cd34423c960a37b1be2ba2d5d /src/connections/ethernet
parentca7c9bb5514d2026d06a33031e93f1d79a70301f (diff)
parent9ac86c2a6e3c8f6e976e7d9e912c87a90d70b2d2 (diff)
downloadnetctl-0d6aa6cebccdf03b4c3b966721f4ebe3723dce8e.tar.gz
netctl-0d6aa6cebccdf03b4c3b966721f4ebe3723dce8e.tar.xz
Merge branch '2.6.x'
Diffstat (limited to 'src/connections/ethernet')
-rw-r--r--src/connections/ethernet8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet
index 9b471bb..f9c660c 100644
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -104,8 +104,8 @@ ethernet_up() {
done
fi
if [[ -n "$GATEWAY" ]]; then
- report_debug ethernet_iproute_up ip route add default via "$GATEWAY"
- if ! ip route add default via "$GATEWAY"; then
+ report_debug ethernet_iproute_up ip route add default via "$GATEWAY" dev "$INTERFACE"
+ if ! ip route add default via "$GATEWAY" dev "$INTERFACE"; then
report_iproute "Adding gateway $GATEWAY failed"
fi
fi
@@ -162,8 +162,8 @@ ethernet_up() {
done
fi
if [[ -n "$GATEWAY6" ]]; then
- report_debug ethernet_iproute_up ip -6 route add default via "$GATEWAY6"
- if ! ip -6 route add default via "$GATEWAY6"; then
+ report_debug ethernet_iproute_up ip -6 route add default via "$GATEWAY6" dev "$INTERFACE"
+ if ! ip -6 route add default via "$GATEWAY6" dev "$INTERFACE"; then
report_iproute "Adding gateway $GATEWAY6 failed"
fi
fi