From 87dbc17afc18b541a122662334c005d3e972880b Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 22 Dec 2011 20:38:15 +0100 Subject: by the powers of exclamation mark! --- retiolum/scripts/tinc_setup/tinc-up | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'retiolum/scripts/tinc_setup') diff --git a/retiolum/scripts/tinc_setup/tinc-up b/retiolum/scripts/tinc_setup/tinc-up index 6bd6746d..a829528d 100755 --- a/retiolum/scripts/tinc_setup/tinc-up +++ b/retiolum/scripts/tinc_setup/tinc-up @@ -11,7 +11,7 @@ host=$dirname/hosts/$name ip link set $INTERFACE up addr4=`sed -n 's|^ *Subnet *= *\(10[.][^ ]*\) *$|\1|p' $host` -if [ "$addr4" = '' ];then +if [ "$addr4" != '' ];then ip -4 addr add $addr4 dev $INTERFACE ip -4 route add 10.243.0.0/16 dev $INTERFACE else -- cgit v1.2.3