diff options
author | tv <tv@also> | 2011-05-22 12:10:59 +0200 |
---|---|---|
committer | tv <tv@also> | 2011-05-22 12:16:09 +0200 |
commit | 224aa7f6695f0d395943555664d25cf3999d2f93 (patch) | |
tree | 1fa587b653091436bb8414730e7bb758c60525e4 /modules | |
parent | 951d398e20fdb778289e7dff2350594503dc300f (diff) |
bigeye: use port 3333 when no krebspowers are available
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/bigeye/bigeyed | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/bigeye/bigeyed b/modules/bigeye/bigeyed index c246c872..5aa36210 100755 --- a/modules/bigeye/bigeyed +++ b/modules/bigeye/bigeyed @@ -12,8 +12,10 @@ cleanup() { test -n "$spid" && kill -9 $spid && spid= } -#python -m http.server 3 & server=$! -python -m SimpleHTTPServer 3 & spid=$? +port=`touch /dev/bigeye 2>/dev/null && rm /dev/bigeye && echo 3 || echo 3333` + +#python -m http.server $port & server=$! +python -m SimpleHTTPServer $port & spid=$? trap cleanup EXIT HUP INT QUIT TERM base64 -d>favicon.ico<<EOF |