annotate contrib/tor2dns/run @ 775:5c86c4e82b4c draft

updated my software to resdb
author d3v11 <d3v11@d3v11.ano>
date Fri, 25 Nov 2011 23:21:28 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
775
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
1 #!/bin/bash
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
2 GETIP() {
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
3 while true; do
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
4 wget 'http://www.showmyip.com/simple/' -O index.html
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
5 sleep 5h
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
6 done
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
7 }
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
8
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
9 [ -e SHARE ] || mkdir SHARE
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
10 cd SHARE
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
11 ../serve &
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
12 GETIP
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
13