From 224aa7f6695f0d395943555664d25cf3999d2f93 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 22 May 2011 12:10:59 +0200 Subject: bigeye: use port 3333 when no krebspowers are available --- modules/bigeye/bigeyed | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/bigeye/bigeyed') 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<