freebsd-ports/net/mpd-l2tp-ipv6pd-client/files/mpd.in
Hajimu UMEMOTO a0b99acbdb - Make it non-interactive port. [1]
- Nuke mpd4 support.

Requested by:	marino [1]
2014-08-17 16:45:25 +00:00

19 lines
353 B
Text

mpd_confdir="%%CONFDIR%%"
mpd_rundir="/var/run"
mpd_enable="YES"
mpd_flags="-b -d ${mpd_confdir}"
stop_precmd="mpd_prestop"
mpd_prestop()
{
local ifaces
ifaces=$(find ${mpd_rundir} -name dhcp6c.conf.\* -print | \
sed -e "s|${mpd_rundir}/dhcp6c\.conf\.||")
for iface in ${ifaces}; do
${mpd_confdir}/dhcp6c_pd.sh stop ${iface}
done
sleep 2
}