Removed old linger code, formatting fixes, other minor adjustments

This commit is contained in:
Joseph Henry
2017-07-26 02:12:28 -07:00
parent b087932c88
commit b105ddb060
9 changed files with 33 additions and 62 deletions

View File

@@ -1,15 +1,20 @@
#!/bin/bash
# create dirs to house the identities/config
mkdir -p test_identities
mkdir test_identities/alice
mkdir test_identities/bob
mkdir alice
mkdir bob
mkdir ted
mkdir carol
# generate identities
zerotier-one test_identities/alice -d
echo $! >> "test_identities/zto.alice"
zerotier-one test_identities/bob -d
echo $! >> "test_identities/zto.bob"
zerotier-one alice -d
echo $! >> "zto.alice"
zerotier-one bob -d
echo $! >> "zto.bob"
zerotier-one ted -d
echo $! >> "zto.ted"
zerotier-one carol -d
echo $! >> "zto.carol"
# should be done by now
sleep(30)
@@ -17,7 +22,11 @@ sleep(30)
# kill daemons
echo "killing daemons"
pid=$(cat test_identities/alice/zto.alice)
pid=$(cat alice/zto.alice)
kill -9 $pid
pid=$(cat test_identities/bob/zto.bob)
pid=$(cat bob/zto.bob)
kill -9 $pid
pid=$(cat ted/zto.ted)
kill -9 $pid
pid=$(cat carol/zto.carol)
kill -9 $pid