freebsd-ports/net/mpd-l2tp-ipv6pd-client/scripts/mpd.in
2008-11-08 16:47:57 +00:00

19 lines
365 B
Text

mpd_confdir="%%PREFIX%%/%%CONF_DIR%%"
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
}