diff --git a/minissdpd/testminissdpd.sh b/minissdpd/testminissdpd.sh index 94f6328..53d27e1 100755 --- a/minissdpd/testminissdpd.sh +++ b/minissdpd/testminissdpd.sh @@ -1,12 +1,16 @@ #!/bin/sh # $Id: testminissdpd.sh,v 1.2 2015/09/03 18:31:25 nanard Exp $ -# (c) 2015 Thomas Bernard +# (c) 2016 Thomas Bernard OS=`uname -s` IF=lo if [ "$OS" = "Darwin" ] ; then IF=lo0 fi +# if set, 1st argument is network interface +if [ -n "$1" ] ; then + IF=$1 +fi SOCKET=`mktemp -t minissdpdsocketXXXXXX` PID="${SOCKET}.pid" ./minissdpd -s $SOCKET -p $PID -i $IF || exit 1