Einrückungen Korrigiert
Signed-off-by: Jan-Tarek Butt <buttjantarek@googlemail.com>
This commit is contained in:
parent
8468b4c130
commit
f6fe4f81c5
1 changed files with 54 additions and 54 deletions
|
@ -62,16 +62,16 @@ if ping -w5 -c3 "$test_internet_host1" &>/dev/null ||
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pubkey=$(fastd -c /etc/fastd/$project/$project.conf --show-key --machine-readable)
|
pubkey=$(fastd -c /etc/fastd/$project/$project.conf --show-key --machine-readable)
|
||||||
#port=666
|
# port=666
|
||||||
|
|
||||||
|
|
||||||
# fire up
|
# fire up
|
||||||
if [ "$(/sbin/ifconfig -a | grep -i ethernet | grep $project)" == "" ]; then
|
if [ "$(/sbin/ifconfig -a | grep -i ethernet | grep $project)" == "" ]; then
|
||||||
/bin/rm /var/run/fastd.$project.pid
|
/bin/rm /var/run/fastd.$project.pid
|
||||||
fastd -c /etc/fastd/$project/$project.conf -d --pid-file /var/run/fastd.$project.pid
|
fastd -c /etc/fastd/$project/$project.conf -d --pid-file /var/run/fastd.$project.pid
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# register
|
# register
|
||||||
wget -T15 "http://mastersword.de/~reddog/${project}/?mac=$mac&name=$hostname&port=$port&key=$pubkey" -O /tmp/fastd_${project}_output
|
wget -T15 "http://mastersword.de/~reddog/${project}/?mac=$mac&name=$hostname&port=$port&key=$pubkey" -O /tmp/fastd_${project}_output
|
||||||
|
|
||||||
filenames=$(awk '/^####/ { gsub(/^####/, "", $0); gsub(/.conf/, "", $0); print $0; }' /tmp/fastd_${project}_output)
|
filenames=$(awk '/^####/ { gsub(/^####/, "", $0); gsub(/.conf/, "", $0); print $0; }' /tmp/fastd_${project}_output)
|
||||||
|
|
Loading…
Add table
Reference in a new issue