#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Initialize one node
set DeviceType dummy
set Mode switch
set Broadcast no
-del Port
set Address localhost
set Port 32758
EOF
# Generate an invitation offline and let another node join the VPN
-invitation=`$tinc $c1 invite bar`
+invitation=`$tinc $c1 invite bar | sed 's/\r//'`
-$tinc $c1 start
+$tinc $c1 start $r1
$tinc $c2 join $invitation