From f345bca81157d6ed54b37a73d9bd0f679ce3bcb1 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 29 Dec 2014 14:01:41 +0100 Subject: [PATCH] fixing ip tools --- templates/tinc-up.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/tinc-up.erb b/templates/tinc-up.erb index 1aca1f0..45a768a 100644 --- a/templates/tinc-up.erb +++ b/templates/tinc-up.erb @@ -3,8 +3,8 @@ grep <%= @real_tinc_bridge_interface %> /proc/net/dev | awk -F: '{ print $1 }' | grep -q <%= @real_tinc_bridge_interface %> if [ $? -gt 0 ]; then brctl addbr <%= @real_tinc_bridge_interface %> - ip addr delete <%= @real_tinc_internal_ip %>/<%= @real_tinc_internal_netmask %> <%= @tinc_internal_interface %> - ip addr add <%= @real_tinc_internal_ip %>/<%= @real_tinc_internal_netmask %> <%= @real_tinc_bridge_interface %> + ip addr delete <%= @real_tinc_internal_ip %>/<%= @real_tinc_internal_netmask %> dev <%= @tinc_internal_interface %> + ip addr add <%= @real_tinc_internal_ip %>/<%= @real_tinc_internal_netmask %> dev <%= @real_tinc_bridge_interface %> brctl addif <%= @real_tinc_bridge_interface %> <%= @tinc_internal_interface %> ip link set dev <%= @tinc_internal_interface %> up fi