File: minissdpd-systemd-wrapper

package info (click to toggle)
minissdpd 1.6.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 508 kB
  • sloc: ansic: 5,076; sh: 290; makefile: 101; python: 40
file content (20 lines) | stat: -rwxr-xr-x 305 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

if [ "$1" = -t ]; then
	if [ -z "$2" ]; then
		echo "MiniSSDPd_INTERFACE_ADDRESS unconfigured; refused to start"
		exit 1
	fi
	exit 0
fi

set -f

listening_ip=
for ip_or_iface in $1; do
	listening_ip="${listening_ip} -i ${ip_or_iface}"
done

shift

exec /usr/sbin/minissdpd $listening_ip $@