eris

Very small inetd http server
git clone https://git.woozle.org/neale/eris.git

eris / contrib
Neale Pickett  ·  2012-11-07

webfs

 1#! /bin/sh
 2
 3PORT=8888
 4
 5if [ $# = 0 ]; then
 6    ARGS=-d
 7fi
 8
 9addr=$(ifconfig | awk -F '[: ]+' '/inet addr/ {print $4;}' \
10        | grep -Fv 127.0.0.1 | head -n 1)
11
12echo Listening on http://$addr:$PORT/
13
14tcpsvd 0 $PORT eris -. $ARGS "$@"