From c4f2092a9528106a0726c48bbcf55d4bea6d7b68 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 22 Dec 2011 20:29:13 +0100 Subject: more testing... --- 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 546e9170..6bd6746d 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