Return to testminissdpd.sh CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / miniupnpd / minissdpd |
Version 2.3.3p0
#!/bin/sh # $Id: testminissdpd.sh,v 1.1.1.1 2023/09/27 11:25:11 misho Exp $ # (c) 2017 Thomas Bernard OS=`uname -s` # if set, 1st argument is network interface if [ -n "$1" ] ; then IF=$1 else case $OS in *BSD | Darwin | SunOS) IF=lo0 ;; *) IF=lo ;; esac fi SOCKET=`mktemp -t minissdpdsocketXXXXXX` PID="${SOCKET}.pid" ./minissdpd -s $SOCKET -p $PID -i $IF || exit 1 ./testminissdpd -s $SOCKET || exit 2 kill `cat $PID`