From 406a7853eaafa18b1615e1442dc00ca7da44b150 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 22 Dec 2011 20:09:11 +0100 Subject: changed regex --- retiolum/scripts/tinc_setup/tinc-up | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'retiolum') diff --git a/retiolum/scripts/tinc_setup/tinc-up b/retiolum/scripts/tinc_setup/tinc-up index 4a9c4320..bcb4dbea 100755 --- a/retiolum/scripts/tinc_setup/tinc-up +++ b/retiolum/scripts/tinc_setup/tinc-up @@ -10,7 +10,7 @@ host=$dirname/hosts/$name ip link set $INTERFACE up -addr4=`sed -n 's|^ *Subnet *= *\(42[.][^ ]*\) *$|\1|p' $host` +addr4=`sed -n 's|^ *Subnet *= *\(10[.][^ ]*\) *$|\1|p' $host` ip -4 addr add $addr4 dev $INTERFACE ip -4 route add 10.243.0.0/16 dev $INTERFACE -- cgit v1.2.3