summaryrefslogtreecommitdiffstats
path: root/retiolum
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2011-12-22 20:38:15 +0100
committerlassulus <lassulus@googlemail.com>2011-12-22 20:38:15 +0100
commit87dbc17afc18b541a122662334c005d3e972880b (patch)
treed1a3ec3fd861dd64070c2c4aa5598ae67e3710ee /retiolum
parentc4f2092a9528106a0726c48bbcf55d4bea6d7b68 (diff)
by the powers of exclamation mark!
Diffstat (limited to 'retiolum')
-rwxr-xr-xretiolum/scripts/tinc_setup/tinc-up2
1 files changed, 1 insertions, 1 deletions
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