summaryrefslogtreecommitdiffstats
path: root/modules/bigeye
diff options
context:
space:
mode:
authortv <tv@also>2011-05-22 12:10:59 +0200
committertv <tv@also>2011-05-22 12:16:09 +0200
commit224aa7f6695f0d395943555664d25cf3999d2f93 (patch)
tree1fa587b653091436bb8414730e7bb758c60525e4 /modules/bigeye
parent951d398e20fdb778289e7dff2350594503dc300f (diff)
bigeye: use port 3333 when no krebspowers are available
Diffstat (limited to 'modules/bigeye')
-rwxr-xr-xmodules/bigeye/bigeyed6
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